]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: fix memory leak for set config rootfs options
authordongxinhua <dongxinhua@huawei.com>
Thu, 21 Nov 2019 14:20:20 +0000 (22:20 +0800)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 3 Dec 2019 22:54:58 +0000 (23:54 +0100)
Signed-off-by: dongxinhua <dongxinhua@huawei.com>
src/lxc/conf.c

index 93a5a909bc9d7c38964f3c9fd5a261360541b51f..f9830dc952658257942f196ab7b982f1bfbee10a 100644 (file)
@@ -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);