summaryrefslogtreecommitdiffstats
path: root/ShellPkg
diff options
context:
space:
mode:
authorYao Jiewen <Jiewen.Yao@intel.com>2015-12-25 01:46:02 +0000
committershenshushi <shenshushi@Edk2>2015-12-25 01:46:02 +0000
commit990046ca4210ae99fabb1814cdd42d2bba3b5c21 (patch)
tree04fadde78ab4de94845e0f5bea6877a9ecef037e /ShellPkg
parentc8cfd83ae8fc3ea581a78306bc7f15e3946e6e6b (diff)
downloadedk2-990046ca4210ae99fabb1814cdd42d2bba3b5c21.tar.gz
edk2-990046ca4210ae99fabb1814cdd42d2bba3b5c21.tar.bz2
edk2-990046ca4210ae99fabb1814cdd42d2bba3b5c21.zip
ShellPkg: Fix memory leak in function'ShellCommandConsistMappingInitialize'.
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/trunk/edk2@19528 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-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;
}
}