From 15f9c89e8427aa7cdf97061a2bda89d8403e4fba Mon Sep 17 00:00:00 2001 From: Dan Robertson Date: Sun, 11 Feb 2018 20:08:56 +0000 Subject: 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. --- common/util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common/util.c') 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); } -- cgit v1.2.3-70-g09d2