diff options
Diffstat (limited to 'storage/myisam/ft_stopwords.c')
-rw-r--r-- | storage/myisam/ft_stopwords.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/storage/myisam/ft_stopwords.c b/storage/myisam/ft_stopwords.c index 3bf31bf3d66..7c743743adc 100644 --- a/storage/myisam/ft_stopwords.c +++ b/storage/myisam/ft_stopwords.c @@ -38,11 +38,12 @@ static int FT_STOPWORD_cmp(void* cmp_arg __attribute__((unused)), (uchar *)w2->pos,w2->len,0); } -static void FT_STOPWORD_free(FT_STOPWORD *w, TREE_FREE action, - void *arg __attribute__((unused))) +static int FT_STOPWORD_free(FT_STOPWORD *w, TREE_FREE action, + void *arg __attribute__((unused))) { if (action == free_free) my_free((void*)w->pos); + return 0; } static int ft_add_stopword(const char *w) @@ -134,7 +135,7 @@ void ft_free_stopwords() if (stopwords3) { - delete_tree(stopwords3); /* purecov: inspected */ + delete_tree(stopwords3, 0); /* purecov: inspected */ my_free(stopwords3); stopwords3=0; } |