Fix valgrind errors

This commit is contained in:
2026-04-29 19:40:58 +02:00
parent cc25563cd2
commit 1c5d49d682
2 changed files with 13 additions and 6 deletions
+3 -1
View File
@@ -252,9 +252,11 @@ Module* parser_parse(TokenStream* ts) {
} while (!terminal);
}
free(p);
return module;
fail:
free(module);
free(p);
parser_free(module);
return NULL;
}