aboutsummaryrefslogtreecommitdiff
path: root/common/util.c
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2018-07-01 23:06:40 +0900
committerDominique Martinet <asmadeus@codewreck.org>2018-07-02 08:03:41 +0900
commitf0d1d263204287b4e0f22368c046cefbbb92cb25 (patch)
tree7e8a305211505d4dc4095ffaafb3bb0f290580f8 /common/util.c
parent0c6149171b3cbbf2b85a58743555db6fd866fa00 (diff)
get_parent_pid: fix memory leak
Found through static analysis.
Diffstat (limited to 'common/util.c')
-rw-r--r--common/util.c2
1 files changed, 1 insertions, 1 deletions
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);
}