From b91f00d3473bc320cba1a00ff9c0c87a44f2c21a Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Fri, 8 Aug 2014 18:27:24 +0000 Subject: [PATCH] log_path: free on lxc_conf free (for master) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is for the master branch, to fix a memleak on conf free. Signed-off-by: Serge Hallyn Acked-by: Stéphane Graber --- src/lxc/conf.c | 2 ++ 1 file changed, 2 insertions(+) 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)