fix(ast_function): ast_function_free does not free the ast data
This commit is contained in:
parent
16381f4f3e
commit
4d01199e21
1 changed files with 3 additions and 1 deletions
|
|
@ -34,7 +34,9 @@ void ast_free_function(struct ast_function *function_data)
|
|||
if (function_data)
|
||||
{
|
||||
free(function_data->name);
|
||||
ast_free(&function_data->value);
|
||||
// WARNING: this ast will be stored in the function hashmap.
|
||||
// thus, it will be freed from the hashmap.
|
||||
// ast_free(&function_data->value);
|
||||
free(function_data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue