diff options
Diffstat (limited to 'EmbeddedPkg/Ebl/EfiDevice.c')
-rw-r--r-- | EmbeddedPkg/Ebl/EfiDevice.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/EmbeddedPkg/Ebl/EfiDevice.c b/EmbeddedPkg/Ebl/EfiDevice.c index 2f9a606726..dafe0c9a05 100644 --- a/EmbeddedPkg/Ebl/EfiDevice.c +++ b/EmbeddedPkg/Ebl/EfiDevice.c @@ -403,7 +403,9 @@ EblLoadFvCmd ( }
Status = gDS->ProcessFirmwareVolume (FvStart, FvSize, &FvHandle);
- FreePool (FvStart);
+ if (EFI_ERROR (Status)) {
+ FreePool (FvStart);
+ }
}
return Status;
}
|