mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 16:51:15 +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++;
|
ct_cnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(active_name[i]);
|
free_disarm(active_name[i]);
|
||||||
active_name[i] = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
free(active_name);
|
free_disarm(active_name);
|
||||||
active_name = NULL;
|
|
||||||
active_cnt = 0;
|
active_cnt = 0;
|
||||||
|
|
||||||
for (i = 0, ct_list_cnt = 0; i < ct_cnt && cret; i++) {
|
for (i = 0, ct_list_cnt = 0; i < ct_cnt && cret; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user