From 4d01199e21920b18a064da71a508322694362e12 Mon Sep 17 00:00:00 2001 From: matteo Date: Sat, 31 Jan 2026 17:06:27 +0100 Subject: [PATCH] fix(ast_function): ast_function_free does not free the ast data --- src/utils/ast/ast_function.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/ast/ast_function.c b/src/utils/ast/ast_function.c index b0356c1..62b5016 100644 --- a/src/utils/ast/ast_function.c +++ b/src/utils/ast/ast_function.c @@ -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); } }