diff options
author | Star Zeng <star.zeng@intel.com> | 2018-07-30 14:47:28 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2018-08-01 10:15:19 +0800 |
commit | ac053f6124bca694d8fabbc1b36c6aac9c037693 (patch) | |
tree | 9c9669af5e226d7830471f0aff877ee9061610d0 /MdeModulePkg | |
parent | 69feaa37aeca6386de0fc635a1287e6e31851d7a (diff) | |
download | edk2-ac053f6124bca694d8fabbc1b36c6aac9c037693.tar.gz edk2-ac053f6124bca694d8fabbc1b36c6aac9c037693.tar.bz2 edk2-ac053f6124bca694d8fabbc1b36c6aac9c037693.zip |
MdeModulePkg DxeCapsuleLibFmp: Free HandleBuffer after it is used
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c index d4026dd5c7..85848279d4 100644 --- a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c +++ b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c @@ -610,6 +610,8 @@ DumpAllFmpInfo ( FreePool(FmpImageInfoBuf);
}
+ FreePool (HandleBuffer);
+
return ;
}
@@ -777,6 +779,8 @@ GetFmpHandleBufferByType ( FreePool(FmpImageInfoBuf);
}
+ FreePool (HandleBuffer);
+
if (MatchedNumberOfHandles == 0) {
return EFI_NOT_FOUND;
}
|