get_parent_pid: fix memory leak

Found through static analysis.
master
Dominique Martinet 7 years ago
parent 0c6149171b
commit f0d1d26320

@ -95,7 +95,7 @@ pid_t get_parent_pid(pid_t child) {
token = strtok(NULL, sep); // parent pid
parent = strtol(token, NULL, 10);
}
free(buffer);
fclose(stat);
}

Loading…
Cancel
Save