From cfea07531d048d0f600b0b24b73ddcb2d480239b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Wed, 29 Jan 2025 19:00:31 +0500 Subject: [PATCH] Fix memory leak. --- src/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile.c b/src/compile.c index 86b957e..2344d2b 100644 --- a/src/compile.c +++ b/src/compile.c @@ -147,7 +147,7 @@ char* compile_gensplit(tSyntaxElement* se, char* operator) { if (token->next->type == TOKEN) string_append(&result,token->next->content.string); else - string_append(&result,compile_expression_wrapped(token->next)); + string_append_free(&result,compile_expression_wrapped(token->next)); if (token->next->next != NULL) {