]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: fix memory leak for set config rootfs options 3178/head
authordongxinhua <dongxinhua@huawei.com>
Thu, 21 Nov 2019 14:20:20 +0000 (22:20 +0800)
committerdongxinhua <dongxinhua@huawei.com>
Thu, 21 Nov 2019 14:20:20 +0000 (22:20 +0800)
Signed-off-by: dongxinhua <dongxinhua@huawei.com>
src/lxc/conf.c

index 06e4adcc387ec0117e2cfc56d00702470d31d7b0..25c3e24d63517f3beb7aa5c8198a1b2d4aaa4697 100644 (file)
@@ -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);