summaryrefslogtreecommitdiff
path: root/ShellPkg/Application
diff options
context:
space:
mode:
authorYao Jiewen <Jiewen.Yao@intel.com>2015-12-25 02:13:23 +0000
committerhwu1225 <hwu1225@Edk2>2015-12-25 02:13:23 +0000
commit22ac7aba0f6fd4d1537fe18c43565abfeb360c61 (patch)
tree764fb33931586b3ef21d0f43d8404dddf9d31a5c /ShellPkg/Application
parentc1d5a11d81519ab78b9e13d171f87effc4653f8b (diff)
downloadedk2-platforms-22ac7aba0f6fd4d1537fe18c43565abfeb360c61.tar.xz
ShellPkg: Fix memory leak in 'InternalShellExecuteDevicePath'.
(Sync patch r19523 from main trunk.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yao Jiewen <Jiewen.Yao@intel.com> Reviewed-by: Qiu Shumin <shumin.qiu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2015@19535 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Application')
-rw-r--r--ShellPkg/Application/Shell/ShellProtocol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ShellPkg/Application/Shell/ShellProtocol.c b/ShellPkg/Application/Shell/ShellProtocol.c
index 2ddb64d8c7..a6bf9c29b4 100644
--- a/ShellPkg/Application/Shell/ShellProtocol.c
+++ b/ShellPkg/Application/Shell/ShellProtocol.c
@@ -1468,6 +1468,7 @@ InternalShellExecuteDevicePath(
if (NewHandle != NULL) {
gBS->UnloadImage(NewHandle);
}
+ FreePool (NewCmdLine);
return (Status);
}
Status = gBS->OpenProtocol(