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; }