diff options
author | Yao Jiewen <Jiewen.Yao@intel.com> | 2015-12-25 01:46:02 +0000 |
---|---|---|
committer | shenshushi <shenshushi@Edk2> | 2015-12-25 01:46:02 +0000 |
commit | 990046ca4210ae99fabb1814cdd42d2bba3b5c21 (patch) | |
tree | 04fadde78ab4de94845e0f5bea6877a9ecef037e /ShellPkg/Library | |
parent | c8cfd83ae8fc3ea581a78306bc7f15e3946e6e6b (diff) | |
download | edk2-platforms-990046ca4210ae99fabb1814cdd42d2bba3b5c21.tar.xz |
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/Library')
-rw-r--r-- | ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c | 1 |
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;
}
}
|