aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDan Robertson <dan.robertson@anidata.org>2018-02-11 20:08:56 +0000
committerDan Robertson <dan.robertson@anidata.org>2018-02-11 20:45:06 +0000
commit15f9c89e8427aa7cdf97061a2bda89d8403e4fba (patch)
tree53af848863a7a5d0ecc13d87c270ff960272aaeb /common
parent4a76d06f33964fee12682a9cd7066d1776c71024 (diff)
Fix more leaks
- get_parent_pid: free buffer returned from read_line after use. - workspace_for_pid: ensure free_pid_workspace is called when pid_workspaces are removed from config->pid_workspaces. - cmd_split: return the cmd_results from _do_split, so that the parent function may free it.
Diffstat (limited to 'common')
-rw-r--r--common/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/util.c b/common/util.c
index d6369853..38ac9367 100644
--- a/common/util.c
+++ b/common/util.c
@@ -96,6 +96,7 @@ pid_t get_parent_pid(pid_t child) {
parent = strtol(token, NULL, 10);
}
+ free(buffer);
fclose(stat);
}