diff options
Diffstat (limited to 'ArmPlatformPkg/ArmJunoPkg/Drivers')
-rw-r--r-- | ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c b/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c index 51ea7c00fe..d8df991e0a 100644 --- a/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c +++ b/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c @@ -189,7 +189,7 @@ JunoFdtStart ( FileInfo = AllocatePool (Size);
Status = File->GetInfo (File, &gEfiFileInfoGuid, &Size, FileInfo);
if (EFI_ERROR (Status)) {
- goto CLOSE_PROTOCOL;
+ goto CLOSE_FILE;
}
// Get the file size
@@ -219,6 +219,9 @@ JunoFdtStart ( }
}
+CLOSE_FILE:
+ File->Close (File);
+
CLOSE_PROTOCOL:
// We do not need the FileSystem protocol
gBS->CloseProtocol (
|