Fix memory leak.

This commit is contained in:
bʰedoh₂ swé 2025-01-29 19:00:31 +05:00
parent 9fdfe76804
commit cfea07531d

View File

@ -147,7 +147,7 @@ char* compile_gensplit(tSyntaxElement* se, char* operator) {
if (token->next->type == TOKEN) if (token->next->type == TOKEN)
string_append(&result,token->next->content.string); string_append(&result,token->next->content.string);
else else
string_append(&result,compile_expression_wrapped(token->next)); string_append_free(&result,compile_expression_wrapped(token->next));
if (token->next->next != NULL) { if (token->next->next != NULL) {