From: Serge Hallyn Date: Thu, 12 Dec 2013 18:23:34 +0000 (-0600) Subject: coverity : fix memleak on error path X-Git-Tag: lxc-1.0.0.beta1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c30ac545a333dcfe7a97f51c12a0611a4bdfb4a9;p=thirdparty%2Flxc.git coverity : fix memleak on error path Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 7228ebe47..213714cf8 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -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; }