Commit 88dd66fc by Serge Hallyn

coverity: fix memleak in userns_exec_1

parent c30ac545
......@@ -4051,6 +4051,7 @@ int userns_exec_1(struct lxc_conf *conf, int (*fn)(void *), void *data)
ret = lxc_map_ids(idmap, pid);
lxc_free_idmap(idmap);
free(idmap);
if (ret < 0) {
ERROR("Error setting up child mappings");
goto err;
......
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