From ac053f6124bca694d8fabbc1b36c6aac9c037693 Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Mon, 30 Jul 2018 14:47:28 +0800 Subject: [PATCH] MdeModulePkg DxeCapsuleLibFmp: Free HandleBuffer after it is used Cc: Jiewen Yao Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao --- MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.2