From: Serge Hallyn Date: Mon, 7 Oct 2013 19:07:43 +0000 (-0500) Subject: free cgroup_tasks_fn after use X-Git-Tag: lxc-1.0.0.alpha2~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5903da828985e18155be30818e086c7c8328f0e0;p=thirdparty%2Flxc.git free cgroup_tasks_fn after use Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index 06975f26f..49cc19055 100644 --- a/src/lxc/cgroup.c +++ b/src/lxc/cgroup.c @@ -1020,6 +1020,7 @@ int lxc_cgroup_enter(struct cgroup_process_info *info, pid_t pid, bool enter_sub } r = lxc_write_to_file(cgroup_tasks_fn, pid_buf, strlen(pid_buf), false); + free(cgroup_tasks_fn); if (r < 0) { SYSERROR("Could not add pid %lu to cgroup %s: internal error", (unsigned long)pid, cgroup_path); return -1;