commit f0d1d263204287b4e0f22368c046cefbbb92cb25
parent 0c6149171b3cbbf2b85a58743555db6fd866fa00
Author: Dominique Martinet <asmadeus@codewreck.org>
Date: Sun, 1 Jul 2018 23:06:40 +0900
get_parent_pid: fix memory leak
Found through static analysis.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/util.c b/common/util.c
@@ -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);
}