Skip to content

Commit 72dee1b

Browse files
authored
Merge pull request shady-gang#34 from shady-gang/fix-double-free
fix double free upon read_file failure
2 parents 20827a2 + bf0a1dc commit 72dee1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver/driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ ShadyErrorCodes driver_load_source_file_from_filename(const CompilerConfig* conf
8686
goto exit;
8787
}
8888
err = driver_load_source_file(config, lang, len, contents, name, mod);
89-
exit:
9089
free((void*) contents);
90+
exit:
9191
return err;
9292
}
9393

0 commit comments

Comments
 (0)