Revision: 16585
          http://sourceforge.net/p/edk2/code/16585
Author:   oliviermartin
Date:     2015-01-06 15:49:51 +0000 (Tue, 06 Jan 2015)
Log Message:
-----------
ArmPlatformPkg/ArmJunoDxe: Close the FDT file

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ronald Cron <[email protected]>
Reviewed-by: Olivier Martin <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c

Modified: trunk/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c
===================================================================
--- trunk/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c        
2015-01-06 15:48:19 UTC (rev 16584)
+++ trunk/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/InstallFdt.c        
2015-01-06 15:49:51 UTC (rev 16585)
@@ -189,7 +189,7 @@
   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 @@
     }
   }
 
+CLOSE_FILE:
+  File->Close (File);
+
 CLOSE_PROTOCOL:
   // We do not need the FileSystem protocol
   gBS->CloseProtocol (


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to