From f98f9d98089be8b5b33669cf6e09f14b819dafc4 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Tue, 6 Jan 2015 15:49:51 +0000 Subject: ArmPlatformPkg/ArmJunoDxe: Close the FDT file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16585 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ( -- cgit v1.2.3