summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2018-07-30 14:47:28 +0800
committerStar Zeng <star.zeng@intel.com>2018-08-01 10:17:01 +0800
commit1b953251b261211b85d3fb81f6efc6a9a1fda7ab (patch)
tree12b22daf5b40ec9675999526e1b89d9420d3a06d
parent3a9b98e770cb1a322a1b5b869c569e78a3d801ed (diff)
downloadedk2-1b953251b261211b85d3fb81f6efc6a9a1fda7ab.tar.gz
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> (cherry picked from commit ac053f6124bca694d8fabbc1b36c6aac9c037693)
-rw-r--r--MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c4
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;
}