mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 11:39:56 +00:00
coverity: avoid deref of explicitly NULL variable on error path
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
32571606a1
commit
908fde6aad
@ -4008,7 +4008,8 @@ 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);
|
||||
if (new)
|
||||
lxc_free_idmap(new);
|
||||
free(new);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user