ARD: proper cleanup
This commit is contained in:
parent
8050712503
commit
4651530d6f
@ -189,6 +189,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
if (parent_pid > 0 && kill (parent_pid, 0)) {
|
if (parent_pid > 0 && kill (parent_pid, 0)) {
|
||||||
fprintf(stderr, "Given PID to watch is not running.\n");
|
fprintf(stderr, "Given PID to watch is not running.\n");
|
||||||
|
free(name);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user