Skip to content

Commit

Permalink
Merge pull request #3178 from xinhua9569/master
Browse files Browse the repository at this point in the history
conf: fix memory leak for set config rootfs options
  • Loading branch information
Christian Brauner committed Dec 3, 2019
2 parents 9c3f1c5 + 9dd7598 commit 22f0dd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/conf.c
Expand Up @@ -4109,6 +4109,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);
Expand Down

0 comments on commit 22f0dd4

Please sign in to comment.