From 967a78e1a402520926793872ec8443fdd8625e40 Mon Sep 17 00:00:00 2001 From: matteo Date: Wed, 28 Jan 2026 16:26:17 +0100 Subject: [PATCH] fix(parser): small typos --- src/parser/grammar_basic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/grammar_basic.c b/src/parser/grammar_basic.c index ab4194c..fb1b12d 100644 --- a/src/parser/grammar_basic.c +++ b/src/parser/grammar_basic.c @@ -172,7 +172,7 @@ struct ast *parse_command(struct lexer_context *ctx) /* @brief: frees command_elements and redirections lists * @return: NULL */ -static err_simple_command(struct list *command_elements, +static void *err_simple_command(struct list *command_elements, struct list *redirections) { list_deep_destroy(command_elements); @@ -238,7 +238,7 @@ struct ast *parse_simple_command(struct lexer_context *ctx) // TODO test this fix for the memory leaks char *word = strdup(element_word->word); - ast_free(element_word); + ast_free(&element); command_elements = list_append(command_elements, word); // end of fix }