From f0d1d263204287b4e0f22368c046cefbbb92cb25 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Sun, 1 Jul 2018 23:06:40 +0900 Subject: get_parent_pid: fix memory leak Found through static analysis. --- common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/util.c') diff --git a/common/util.c b/common/util.c index fb7f9454..678926ed 100644 --- 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); } -- cgit v1.2.3