We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
free()
1 parent d07d521 commit bbaa2bfCopy full SHA for bbaa2bf
1 file changed
src/main.c
@@ -174,16 +174,16 @@ int main(int argc, char* argv[]) {
174
if(chdir(dirPath) != 0) {
175
mrb_warn(mrb, "Couldn't change working directory to %s", dirPath);
176
}
177
- free(dirPath);
178
179
int exitCode = loadGame(mrb, path, argc, argv);
180
- free(path);
181
182
if(mrb->exc) {
183
mrb_print_error(mrb);
184
exitCode = 1;
185
186
+ free(dirPath);
+ free(path);
187
PHYSFS_deinit();
188
mrb_close(mrb);
189
return exitCode;
0 commit comments