Unverified Commit 22f0dd49 by Christian Brauner Committed by GitHub

Merge pull request #3178 from xinhua9569/master

conf: fix memory leak for set config rootfs options
parents 9c3f1c58 9dd75981
...@@ -4109,6 +4109,7 @@ void lxc_conf_free(struct lxc_conf *conf) ...@@ -4109,6 +4109,7 @@ void lxc_conf_free(struct lxc_conf *conf)
free(conf->rootfs.bdev_type); free(conf->rootfs.bdev_type);
free(conf->rootfs.options); free(conf->rootfs.options);
free(conf->rootfs.path); free(conf->rootfs.path);
free(conf->rootfs.data);
free(conf->logfile); free(conf->logfile);
if (conf->logfd != -1) if (conf->logfd != -1)
close(conf->logfd); close(conf->logfd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment