]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix memory leak in cgroup_exit 2789/head
authorLiFeng <lifeng68@huawei.com>
Thu, 17 Jan 2019 10:48:16 +0000 (05:48 -0500)
committerLiFeng <lifeng68@huawei.com>
Thu, 17 Jan 2019 10:49:06 +0000 (05:49 -0500)
Add free memory pointed by struct cgroup_ops *ops

Signed-off-by: LiFeng <lifeng68@huawei.com>
src/lxc/cgroups/cgroup.c

index ae65145d891ee6758ecf3b69c2e31d79f7707808..f0d4e1eff16cac93d01f6571052fe0e9786e0466 100644 (file)
@@ -96,6 +96,8 @@ void cgroup_exit(struct cgroup_ops *ops)
        }
        free(ops->hierarchies);
 
+       free(ops);
+
        return;
 }