mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-29 21:21:18 +00:00
coverity: #1425971
Dereference after null check Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
f38cf5b8f4
commit
287df277ff
@ -523,6 +523,8 @@ static bool find_hierarchy_mountpts( struct cgroup_meta_data *meta_data, char **
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
lxc_free_array((void **)subsystems, free);
|
lxc_free_array((void **)subsystems, free);
|
||||||
|
if (!h)
|
||||||
|
goto out;
|
||||||
|
|
||||||
r = lxc_grow_array((void ***)&meta_data->mount_points, &mount_point_capacity, mount_point_count + 1, 12);
|
r = lxc_grow_array((void ***)&meta_data->mount_points, &mount_point_capacity, mount_point_count + 1, 12);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user