Fix all valgrind errors

This commit is contained in:
2026-04-26 22:13:39 +02:00
parent dbc69eddc8
commit 129036b539
3 changed files with 5 additions and 1 deletions
+3
View File
@@ -22,6 +22,9 @@ Module* parser_parse(TokenStream* ts) {
fprintf(stderr, "Out of memory\n");
exit(1);
}
module->name = NULL;
module->imports = NULL;
module->import_count = 0;
module->name = (char*)malloc(t.text.length + 1);
if (module->name == NULL) {