Skip to content

Commit cabdf46

Browse files
committed
Fix free instead of pfree
1 parent d1824a5 commit cabdf46

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

contrib/tsearch2/ispell/spell.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ NormalizeSubWord(IspellDict * Conf, char *word, char flag) {
744744
}
745745

746746
if (cur == forms) {
747-
free(forms);
747+
pfree(forms);
748748
return (NULL);
749749
}
750750
return (forms);
@@ -848,14 +848,14 @@ SplitToVariants( IspellDict * Conf, SPNode *snode, SplitVar * orig, char *word,
848848
new->nstem++;
849849
sptr++;
850850
}
851-
free(subres);
851+
pfree(subres);
852852

853853
while( ptr->next )
854854
ptr = ptr->next;
855855
ptr->next = SplitToVariants(Conf, NULL, new, word, wordlen, startpos+lenaff, startpos+lenaff);
856856

857-
free(new->stem);
858-
free(new);
857+
pfree(new->stem);
858+
pfree(new);
859859
}
860860
}
861861

@@ -926,16 +926,16 @@ NINormalizeWord(IspellDict * Conf, char *word) {
926926
cur++; ptr++;
927927
}
928928
*cur=NULL;
929-
free(subres);
929+
pfree(subres);
930930
var->stem[ 0 ] = NULL;
931931
}
932932
}
933933

934934
for(i=0;i<var->nstem && var->stem[ i ];i++)
935-
free( var->stem[i] );
935+
pfree( var->stem[i] );
936936
ptr = var->next;
937-
free(var->stem);
938-
free(var);
937+
pfree(var->stem);
938+
pfree(var);
939939
var=ptr;
940940
}
941941
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy