]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity : fix memleak on error path
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 12 Dec 2013 18:23:34 +0000 (12:23 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 12 Dec 2013 18:23:34 +0000 (12:23 -0600)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c

index 7228ebe477dcf6eacba663678a21cbcf3a0b3498..213714cf8cc1b220baf39d94486f863c128ac59f 100644 (file)
@@ -4009,6 +4009,7 @@ static struct lxc_list *idmap_add_id(struct lxc_conf *conf, uid_t uid)
 err:
        ERROR("Out of memory building a new uid map");
        lxc_free_idmap(new);
+       free(new);
        return NULL;
 }