]> git.proxmox.com Git - efi-boot-shim.git/commitdiff
Fix a memory leak
authorSteve Langasek <steve.langasek@canonical.com>
Tue, 24 Sep 2013 16:05:51 +0000 (12:05 -0400)
committerPeter Jones <pjones@redhat.com>
Tue, 24 Sep 2013 16:05:51 +0000 (12:05 -0400)
netboot.c

index cbbba66a54368fe9060a42c2f733f9ab52a98f80..a8904fd86b5a05c38a42a0d79f626c998327cb56 100644 (file)
--- a/netboot.c
+++ b/netboot.c
@@ -355,6 +355,8 @@ try_again:
                goto try_again;
        }
 
+       if (rc != EFI_SUCCESS && *buffer) {
+               FreePool(*buffer);
+       }
        return rc;
-
 }