From: LiFeng Date: Thu, 17 Jan 2019 10:48:16 +0000 (-0500) Subject: Fix memory leak in cgroup_exit X-Git-Tag: lxc-3.2.0~189^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96a03c1f372a145bf170f38f903edadce7534ced;p=thirdparty%2Flxc.git Fix memory leak in cgroup_exit Add free memory pointed by struct cgroup_ops *ops Signed-off-by: LiFeng --- diff --git a/src/lxc/cgroups/cgroup.c b/src/lxc/cgroups/cgroup.c index ae65145d8..f0d4e1eff 100644 --- a/src/lxc/cgroups/cgroup.c +++ b/src/lxc/cgroups/cgroup.c @@ -96,6 +96,8 @@ void cgroup_exit(struct cgroup_ops *ops) } free(ops->hierarchies); + free(ops); + return; }