Unverified Commit f6e94633 by Simos Xenitellis Committed by Christian Brauner

coverity: #1425836

Resource leak Signed-off-by: 's avatarSimos Xenitellis <simos.lists@googlemail.com>
parent aea8ed0d
...@@ -3820,8 +3820,10 @@ struct lxc_list *get_minimal_idmap(struct lxc_conf *conf) ...@@ -3820,8 +3820,10 @@ struct lxc_list *get_minimal_idmap(struct lxc_conf *conf)
return idmap; return idmap;
on_error: on_error:
if (idmap) if (idmap) {
lxc_free_idmap(idmap); lxc_free_idmap(idmap);
free(idmap);
}
if (container_root_uid) if (container_root_uid)
free(container_root_uid); free(container_root_uid);
if (container_root_gid) if (container_root_gid)
......
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