Commit c30ac545 by Serge Hallyn

coverity : fix memleak on error path

parent b8f475c0
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment