From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Permerror (SPF Permanent Error: More than 10 MX records returned) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=star.zeng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 777F62035B2D1 for ; Sun, 17 Dec 2017 22:18:41 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Dec 2017 22:23:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,420,1508828400"; d="scan'208";a="2601985" Received: from shwdeopenpsi068.ccr.corp.intel.com ([10.239.158.46]) by fmsmga002.fm.intel.com with ESMTP; 17 Dec 2017 22:23:25 -0800 From: Star Zeng To: edk2-devel@lists.01.org Cc: Star Zeng , Jiewen Yao , Chao Zhang Date: Mon, 18 Dec 2017 14:23:21 +0800 Message-Id: <1513578201-18608-3-git-send-email-star.zeng@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 In-Reply-To: <1513578201-18608-1-git-send-email-star.zeng@intel.com> References: <1513578201-18608-1-git-send-email-star.zeng@intel.com> Subject: [PATCH 2/2] SecurityPkg TcgMor: Remove wrong comments X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2017 06:18:41 -0000 and free the HandleBuffer after used. Cc: Jiewen Yao Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng --- SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c b/SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c index e691a084d0ed..4fc3330c3964 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); } /** -- 2.7.0.windows.1