From: Serge Hallyn Date: Thu, 16 Jan 2014 16:26:18 +0000 (-0600) Subject: address coverity-found memleak of data on error case X-Git-Tag: lxc-1.0.0.beta3~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=378a5729487794e4f127ac496e7111c51fe2d464;p=thirdparty%2Flxc.git address coverity-found memleak of data on error case Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index 8ea347d27..85384fcc1 100644 --- a/src/lxc/cgroup.c +++ b/src/lxc/cgroup.c @@ -2121,6 +2121,7 @@ static inline bool cgfs_init(struct lxc_handler *handler) if (!d->meta) { ERROR("cgroupfs failed to detect cgroup metadata"); + free(d); return false; } handler->cgroup_info->data = d;