Commit f2e4dddd by Christian Brauner Committed by Stéphane Graber

Remove unnecessary call to free()

Freeing memory when calloc() fails doesn't make sense Signed-off-by: 's avatarChristian Brauner <christianvanbrauner@gmail.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent 5afb8096
...@@ -168,7 +168,6 @@ static int do_destroy_with_snapshots(struct lxc_container *c) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment