summaryrefslogtreecommitdiff
path: root/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c
diff options
context:
space:
mode:
authorYao Jiewen <Jiewen.Yao@intel.com>2015-12-25 02:15:16 +0000
committerhwu1225 <hwu1225@Edk2>2015-12-25 02:15:16 +0000
commit0dd73893d00a5d7be3d22b3ff318781942d5052e (patch)
tree3138989ef18839a33e46da153b5e02ffd2fd1245 /ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c
parentd3fcd9cfb456b1ac4397644b2fb0e53967a50899 (diff)
downloadedk2-platforms-0dd73893d00a5d7be3d22b3ff318781942d5052e.tar.xz
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 <Jiewen.Yao@intel.com> Reviewed-by: Qiu Shumin <shumin.qiu@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2015@19540 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c')
-rw-r--r--ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c b/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c
index 86e8dc59a8..41754dd905 100644
--- a/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c
+++ b/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c
@@ -1401,6 +1401,7 @@ ShellCommandConsistMappingInitialize (
(VOID **)&SimpleFileSystem
);
if (EFI_ERROR(Status)) {
+ FreePool (HIDevicePath);
continue;
}
}