summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-04-26 15:23:09 +0200
committerYorhel <git@yorhel.nl>2009-04-26 15:23:09 +0200
commitae14721c5feda38cbac046be39b2d7730dadd4ce (patch)
tree612128b0e3b1f93c47efe0dfae4ea43df8abaa81
parenteb3310060f542d682316b53f662c74a154f01b26 (diff)
Fixed segfault after aborting calculation
I really, really, wasn't think when writing commit 91b131a0805a6932fa48255473b1edaa3bf031a1
-rw-r--r--src/calc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/calc.c b/src/calc.c
index 2bef88e..61ffa96 100644
--- a/src/calc.c
+++ b/src/calc.c
@@ -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))