Skip to content

Commit

Permalink
coverity : fix memleak on error path
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
hallyn committed Dec 12, 2013
1 parent b8f475c commit c30ac54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/conf.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit c30ac54

Please sign in to comment.