fix(ast_function): ast_function_free does not free the ast data

This commit is contained in:
matteo 2026-01-31 17:06:27 +01:00
parent 16381f4f3e
commit 4d01199e21

View file

@ -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);
}
}