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

(Sync patch r19528 from main trunk.)

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]>

Revision Links:
--------------
    http://sourceforge.net/p/edk2/code/19528

Modified Paths:
--------------
    branches/UDK2015/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c

Modified: branches/UDK2015/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c
===================================================================
--- branches/UDK2015/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c      
2015-12-25 02:14:50 UTC (rev 19539)
+++ branches/UDK2015/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c      
2015-12-25 02:15:16 UTC (rev 19540)
@@ -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