Revision: 19528
          http://sourceforge.net/p/edk2/code/19528
Author:   shenshushi
Date:     2015-12-25 01:46:02 +0000 (Fri, 25 Dec 2015)
Log Message:
-----------
ShellPkg: Fix memory leak in function'ShellCommandConsistMappingInitialize'.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yao Jiewen <[email protected]>
Reviewed-by: Qiu Shumin <[email protected]>
Reviewed-by: Ruiyu Ni <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c

Modified: trunk/edk2/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c
===================================================================
--- trunk/edk2/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c    
2015-12-25 01:41:38 UTC (rev 19527)
+++ trunk/edk2/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c    
2015-12-25 01:46:02 UTC (rev 19528)
@@ -1401,6 +1401,7 @@
                                     (VOID **)&SimpleFileSystem
                                     );
       if (EFI_ERROR(Status)) {
+        FreePool (HIDevicePath);
         continue;
       }
     }


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to