Revision: 19535
          http://sourceforge.net/p/edk2/code/19535
Author:   hwu1225
Date:     2015-12-25 02:13:23 +0000 (Fri, 25 Dec 2015)
Log Message:
-----------
ShellPkg: Fix memory leak in 'InternalShellExecuteDevicePath'.

(Sync patch r19523 from main trunk.)

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

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

Modified Paths:
--------------
    branches/UDK2015/ShellPkg/Application/Shell/ShellProtocol.c

Modified: branches/UDK2015/ShellPkg/Application/Shell/ShellProtocol.c
===================================================================
--- branches/UDK2015/ShellPkg/Application/Shell/ShellProtocol.c 2015-12-25 
02:12:50 UTC (rev 19534)
+++ branches/UDK2015/ShellPkg/Application/Shell/ShellProtocol.c 2015-12-25 
02:13:23 UTC (rev 19535)
@@ -1468,6 +1468,7 @@
     if (NewHandle != NULL) {
       gBS->UnloadImage(NewHandle);
     }
+    FreePool (NewCmdLine);
     return (Status);
   }
   Status = gBS->OpenProtocol(


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

Reply via email to