From cbdb9073480c3e4d8a088b306c23406cf42e25c0 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 31 Aug 2026 17:55:16 +0200 Subject: feat: hex/binary integer literals and constant-folding const expressions --- src/parser/ast.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/parser/ast.c') diff --git a/src/parser/ast.c b/src/parser/ast.c index f9f857d..704e9a4 100644 --- a/src/parser/ast.c +++ b/src/parser/ast.c @@ -78,6 +78,8 @@ struct Program create_program(void) void free_program(struct Program* program) { + for (size_t i = 0; i < program->const_count; i += 1) + free_expr(program->consts[i].value); free(program->consts); free(program->data_decls); -- cgit v1.3