Fixed another dirname/basename refactoring bug.
file was freed before use.
This commit is contained in:
1 parent
d982e38b8b
commit
4e9123a0b1
1 file changed
+3
-1
@@ -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':
|
||||||
|
|||||||
Reference in new issue
Block a user