]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
log_path: free on lxc_conf free (for master)
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 8 Aug 2014 18:27:24 +0000 (18:27 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 8 Aug 2014 18:34:50 +0000 (14:34 -0400)
This is for the master branch, to fix a memleak on conf free.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c

index 237bad4bc0c86a121b7b271a611ce7d1b3058384..531a588ad3b90032ee25db1a6a823e8bb0661b5c 100644 (file)
@@ -4482,6 +4482,8 @@ void lxc_conf_free(struct lxc_conf *conf)
 {
        if (!conf)
                return;
+       if (conf->console.log_path)
+               free(conf->console.log_path);
        if (conf->console.path)
                free(conf->console.path);
        if (conf->rootfs.mount)