From: Serge Hallyn Date: Fri, 8 Aug 2014 18:27:24 +0000 (+0000) Subject: log_path: free on lxc_conf free (for master) X-Git-Tag: lxc-1.1.0.alpha2~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b91f00d3473bc320cba1a00ff9c0c87a44f2c21a;p=thirdparty%2Flxc.git log_path: free on lxc_conf free (for master) This is for the master branch, to fix a memleak on conf free. Signed-off-by: Serge Hallyn Acked-by: Stéphane Graber --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 237bad4bc..531a588ad 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -4482,6 +4482,8 @@ void lxc_conf_free(struct lxc_conf *conf) { if (!conf) return; + if (conf->console.log_path) + free(conf->console.log_path); if (conf->console.path) free(conf->console.path); if (conf->rootfs.mount)