diff options
-rw-r--r-- | src/calc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -367,9 +367,9 @@ void calc_process() { /* start calculating */ if(!calc_dir(root, name) && !failed) { - free(path); if(!path[1] && strcmp(name, ".")) free(name); + free(path); if(root->sub == NULL) { freedir(root); failed = 1; @@ -403,9 +403,9 @@ void calc_process() { } /* something went wrong... */ + free(path); if(!path[1] && strcmp(name, ".")) free(name); - free(path); freedir(root); calc_fail: while(failed && !input_handle(0)) |