mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 03:35:20 +00:00
Remove unnecessary call to free()
Freeing memory when calloc() fails doesn't make sense Signed-off-by: Christian Brauner <christianvanbrauner@gmail.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
5afb809607
commit
f2e4dddd71
@ -168,7 +168,6 @@ static int do_destroy_with_snapshots(struct lxc_container *c)
|
|||||||
if (!buf) {
|
if (!buf) {
|
||||||
SYSERROR("failed to allocate memory");
|
SYSERROR("failed to allocate memory");
|
||||||
close(fd);
|
close(fd);
|
||||||
free(buf);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user