X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=SecurityPkg%2FTcg%2FMemoryOverwriteControl%2FTcgMor.c;fp=SecurityPkg%2FTcg%2FMemoryOverwriteControl%2FTcgMor.c;h=4fc3330c3964d0d2851537d5aedcc09cd88df3c5;hp=e691a084d0edd5f952c3b056a3717317fc9e0197;hb=e9dfa1b519cddfb7ceb93706d527ac25f36606c2;hpb=8b1943a8776e0f46b459f2e5f0f980d8dce32fab diff --git a/SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c b/SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c index e691a084d0..4fc3330c39 100644 --- a/SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c +++ b/SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c @@ -23,8 +23,6 @@ UINT8 mMorControl; /** Ready to Boot Event notification handler. - Sequence of OS boot events is measured in this event notification handler. - @param[in] Event Event whose notification function is being invoked @param[in] Context Pointer to the notification function's context @@ -234,9 +232,6 @@ Exit: /** Notification function of END_OF_DXE. - This is a notification function registered on END_OF_DXE event. - It is to get VarCheckPcdBin. - @param[in] Event Event whose notification function is being invoked. @param[in] Context Pointer to the notification function's context. @@ -299,6 +294,8 @@ TPerResetAtEndOfDxe ( InitiateTPerReset (Ssp, BlockIo->Media->MediaId); } + + FreePool (HandleBuffer); } /**