mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-06 16:13:35 +00:00
lxccontainer: use free_disarm() in list_all_containers()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
922c335290
commit
b7e1e6febb
@ -5689,12 +5689,10 @@ int list_all_containers(const char *lxcpath, char ***nret,
|
||||
ct_cnt++;
|
||||
}
|
||||
|
||||
free(active_name[i]);
|
||||
active_name[i] = NULL;
|
||||
free_disarm(active_name[i]);
|
||||
}
|
||||
|
||||
free(active_name);
|
||||
active_name = NULL;
|
||||
free_disarm(active_name);
|
||||
active_cnt = 0;
|
||||
|
||||
for (i = 0, ct_list_cnt = 0; i < ct_cnt && cret; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user