mirror of https://github.com/acidanthera/audk.git
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:
parent
69feaa37ae
commit
ac053f6124
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue