Commit 5903da82 by Serge Hallyn

free cgroup_tasks_fn after use

parent 9baa57bd
...@@ -1020,6 +1020,7 @@ int lxc_cgroup_enter(struct cgroup_process_info *info, pid_t pid, bool enter_sub ...@@ -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); r = lxc_write_to_file(cgroup_tasks_fn, pid_buf, strlen(pid_buf), false);
free(cgroup_tasks_fn);
if (r < 0) { if (r < 0) {
SYSERROR("Could not add pid %lu to cgroup %s: internal error", (unsigned long)pid, cgroup_path); SYSERROR("Could not add pid %lu to cgroup %s: internal error", (unsigned long)pid, cgroup_path);
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment