Add missing char_array_destroy when numex is invalid
This commit is contained in:
@@ -1232,6 +1232,7 @@ char *replace_numeric_expressions(char *str, char *lang) {
|
|||||||
|
|
||||||
if (!have_valid_numex) {
|
if (!have_valid_numex) {
|
||||||
numex_result_array_destroy(results);
|
numex_result_array_destroy(results);
|
||||||
|
char_array_destroy(replacement);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user