From: dongxinhua Date: Thu, 21 Nov 2019 14:20:20 +0000 (+0800) Subject: conf: fix memory leak for set config rootfs options X-Git-Tag: lxc-4.0.0~87^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dd7598161c812a82c33e22792a80da4920c4c96;p=thirdparty%2Flxc.git conf: fix memory leak for set config rootfs options Signed-off-by: dongxinhua --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 06e4adcc3..25c3e24d6 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -4096,6 +4096,7 @@ void lxc_conf_free(struct lxc_conf *conf) free(conf->rootfs.bdev_type); free(conf->rootfs.options); free(conf->rootfs.path); + free(conf->rootfs.data); free(conf->logfile); if (conf->logfd != -1) close(conf->logfd);