[fix] Leak in expanding strings that have a separable prefix and suffix, other than that ran through 78 million expansions with no discernable memory issues

This commit is contained in:
Al
2015-12-26 17:19:52 -05:00
parent deeb8f007e
commit 0fa1c2389c

View File

@@ -539,6 +539,9 @@ bool add_affix_expansions(string_tree_t *tree, char *str, char *lang, token_t to
}
}
cstring_array_destroy(root_strings);
root_strings = NULL;
} else {
for (int j = 0; j < suffix_expansions->n; j++) {
key->n = prefix_end;