]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc_conf_free: free rootfs.pivot and log_file if not null
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 17 Dec 2013 03:56:22 +0000 (21:56 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 17 Dec 2013 03:58:47 +0000 (21:58 -0600)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c

index 8e40e591a13fe11f0999d80596d90838c76c9369..69f90d002a0a6ff4331e3eb56db20bbfd4516e07 100644 (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)