mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Fix free instead of pfree
This commit is contained in:
@ -744,7 +744,7 @@ NormalizeSubWord(IspellDict * Conf, char *word, char flag) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (cur == forms) {
|
if (cur == forms) {
|
||||||
free(forms);
|
pfree(forms);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
return (forms);
|
return (forms);
|
||||||
@ -848,14 +848,14 @@ SplitToVariants( IspellDict * Conf, SPNode *snode, SplitVar * orig, char *word,
|
|||||||
new->nstem++;
|
new->nstem++;
|
||||||
sptr++;
|
sptr++;
|
||||||
}
|
}
|
||||||
free(subres);
|
pfree(subres);
|
||||||
|
|
||||||
while( ptr->next )
|
while( ptr->next )
|
||||||
ptr = ptr->next;
|
ptr = ptr->next;
|
||||||
ptr->next = SplitToVariants(Conf, NULL, new, word, wordlen, startpos+lenaff, startpos+lenaff);
|
ptr->next = SplitToVariants(Conf, NULL, new, word, wordlen, startpos+lenaff, startpos+lenaff);
|
||||||
|
|
||||||
free(new->stem);
|
pfree(new->stem);
|
||||||
free(new);
|
pfree(new);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -926,16 +926,16 @@ NINormalizeWord(IspellDict * Conf, char *word) {
|
|||||||
cur++; ptr++;
|
cur++; ptr++;
|
||||||
}
|
}
|
||||||
*cur=NULL;
|
*cur=NULL;
|
||||||
free(subres);
|
pfree(subres);
|
||||||
var->stem[ 0 ] = NULL;
|
var->stem[ 0 ] = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i=0;i<var->nstem && var->stem[ i ];i++)
|
for(i=0;i<var->nstem && var->stem[ i ];i++)
|
||||||
free( var->stem[i] );
|
pfree( var->stem[i] );
|
||||||
ptr = var->next;
|
ptr = var->next;
|
||||||
free(var->stem);
|
pfree(var->stem);
|
||||||
free(var);
|
pfree(var);
|
||||||
var=ptr;
|
var=ptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user