Commit 96a03c1f by LiFeng

Fix memory leak in cgroup_exit

Add free memory pointed by struct cgroup_ops *ops Signed-off-by: 's avatarLiFeng <lifeng68@huawei.com>
parent 575ea467
...@@ -96,6 +96,8 @@ void cgroup_exit(struct cgroup_ops *ops) ...@@ -96,6 +96,8 @@ void cgroup_exit(struct cgroup_ops *ops)
} }
free(ops->hierarchies); free(ops->hierarchies);
free(ops);
return; return;
} }
......
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