mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-04 19:50:30 +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) {
|
||||
SYSERROR("failed to allocate memory");
|
||||
close(fd);
|
||||
free(buf);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user