lxc_conf_free: free rootfs.pivot and log_file if not null

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Serge Hallyn 2013-12-16 21:56:22 -06:00
parent 8face1de22
commit a58878d626

View File

@ -3945,6 +3945,10 @@ void lxc_conf_free(struct lxc_conf *conf)
free(conf->rootfs.mount);
if (conf->rootfs.path)
free(conf->rootfs.path);
if (conf->rootfs.pivot)
free(conf->rootfs.pivot);
if (conf->logfile)
free(conf->logfile);
if (conf->utsname)
free(conf->utsname);
if (conf->ttydir)