Fixed another dirname/basename refactoring bug.

file was freed before use.
This commit is contained in:
Andreas Steffen
2014-04-07 12:07:00 +02:00
parent d982e38b8b
commit 4e9123a0b1
+3 -1
View File
@@ -278,12 +278,14 @@ static void do_args(int argc, char *argv[])
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
} }
free(file);
free(dir); free(dir);
if (!attest->set_file(attest, file, op == OP_ADD)) if (!attest->set_file(attest, file, op == OP_ADD))
{ {
free(file);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
free(file);
continue; continue;
} }
case 'G': case 'G':