Skip to content
Snippets Groups Projects
Commit ae14721c authored by Yorhel's avatar Yorhel
Browse files

Fixed segfault after aborting calculation

I really, really, wasn't think when writing commit
91b131a0
parent eb331006
No related branches found
No related tags found
No related merge requests found
...@@ -403,9 +403,9 @@ void calc_process() { ...@@ -403,9 +403,9 @@ void calc_process() {
} }
/* something went wrong... */ /* something went wrong... */
free(path);
if(!path[1] && strcmp(name, ".")) if(!path[1] && strcmp(name, "."))
free(name); free(name);
free(path);
freedir(root); freedir(root);
calc_fail: calc_fail:
while(failed && !input_handle(0)) while(failed && !input_handle(0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment