Revision: 19523
http://sourceforge.net/p/edk2/code/19523
Author: shenshushi
Date: 2015-12-24 08:36:45 +0000 (Thu, 24 Dec 2015)
Log Message:
-----------
ShellPkg: Fix memory leak in 'InternalShellExecuteDevicePath'.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yao Jiewen <[email protected]>
Reviewed-by: Qiu Shumin <[email protected]>
Modified Paths:
--------------
trunk/edk2/ShellPkg/Application/Shell/ShellProtocol.c
Modified: trunk/edk2/ShellPkg/Application/Shell/ShellProtocol.c
===================================================================
--- trunk/edk2/ShellPkg/Application/Shell/ShellProtocol.c 2015-12-24
08:25:52 UTC (rev 19522)
+++ trunk/edk2/ShellPkg/Application/Shell/ShellProtocol.c 2015-12-24
08:36:45 UTC (rev 19523)
@@ -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