summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netboot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/netboot.c b/netboot.c
index cbbba66a..a8904fd8 100644
--- a/netboot.c
+++ b/netboot.c
@@ -355,6 +355,8 @@ try_again:
goto try_again;
}
+ if (rc != EFI_SUCCESS && *buffer) {
+ FreePool(*buffer);
+ }
return rc;
-
}