From: dongxinhua Date: Thu, 21 Nov 2019 14:20:20 +0000 (+0800) Subject: conf: fix memory leak for set config rootfs options X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df3218e12531e814a73a1510cebf0cf3cbddd82b;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 93a5a909b..f9830dc95 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -4036,6 +4036,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);