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>
This commit is contained in:
Star Zeng 2018-07-30 14:47:28 +08:00
parent 69feaa37ae
commit ac053f6124
1 changed files with 4 additions and 0 deletions

View File

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