From: Serge Hallyn Date: Tue, 17 Dec 2013 03:56:22 +0000 (-0600) Subject: lxc_conf_free: free rootfs.pivot and log_file if not null X-Git-Tag: lxc-1.0.0.beta1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a58878d626bc3146b654c27c38be73046cb6224c;p=thirdparty%2Flxc.git lxc_conf_free: free rootfs.pivot and log_file if not null Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 8e40e591a..69f90d002 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -3945,6 +3945,10 @@ void lxc_conf_free(struct lxc_conf *conf) free(conf->rootfs.mount); if (conf->rootfs.path) free(conf->rootfs.path); + if (conf->rootfs.pivot) + free(conf->rootfs.pivot); + if (conf->logfile) + free(conf->logfile); if (conf->utsname) free(conf->utsname); if (conf->ttydir)