diff options
author | Yao Jiewen <Jiewen.Yao@intel.com> | 2015-12-24 08:36:45 +0000 |
---|---|---|
committer | shenshushi <shenshushi@Edk2> | 2015-12-24 08:36:45 +0000 |
commit | a5bc2ff8c9b8feeb6fb77cd1c840005c0316ccf4 (patch) | |
tree | 5defb6b58e93fef3b6c727948491017bc9f07f57 /ShellPkg | |
parent | 594e780bb9391b6cc991ca8670a86195b8269337 (diff) | |
download | edk2-platforms-a5bc2ff8c9b8feeb6fb77cd1c840005c0316ccf4.tar.xz |
ShellPkg: Fix memory leak in 'InternalShellExecuteDevicePath'.
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/trunk/edk2@19523 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Application/Shell/ShellProtocol.c | 1 |
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(
|