From cabdf460d3d7ef3e3f8c8dbf65288fee6a165008 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Fri, 28 Nov 2003 12:09:02 +0000 Subject: [PATCH] Fix free instead of pfree --- contrib/tsearch2/ispell/spell.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/contrib/tsearch2/ispell/spell.c b/contrib/tsearch2/ispell/spell.c index 6f0fe42314..aa5848b5c1 100644 --- a/contrib/tsearch2/ispell/spell.c +++ b/contrib/tsearch2/ispell/spell.c @@ -744,7 +744,7 @@ NormalizeSubWord(IspellDict * Conf, char *word, char flag) { } if (cur == forms) { - free(forms); + pfree(forms); return (NULL); } return (forms); @@ -848,14 +848,14 @@ SplitToVariants( IspellDict * Conf, SPNode *snode, SplitVar * orig, char *word, new->nstem++; sptr++; } - free(subres); + pfree(subres); while( ptr->next ) ptr = ptr->next; ptr->next = SplitToVariants(Conf, NULL, new, word, wordlen, startpos+lenaff, startpos+lenaff); - free(new->stem); - free(new); + pfree(new->stem); + pfree(new); } } @@ -926,16 +926,16 @@ NINormalizeWord(IspellDict * Conf, char *word) { cur++; ptr++; } *cur=NULL; - free(subres); + pfree(subres); var->stem[ 0 ] = NULL; } } for(i=0;instem && var->stem[ i ];i++) - free( var->stem[i] ); + pfree( var->stem[i] ); ptr = var->next; - free(var->stem); - free(var); + pfree(var->stem); + pfree(var); var=ptr; } }