From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: wei6.xu@intel.com) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by groups.io with SMTP; Thu, 25 Jul 2019 20:11:04 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2019 20:11:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,309,1559545200"; d="scan'208";a="170497778" Received: from shwdeopenpsi174.ccr.corp.intel.com ([10.239.157.39]) by fmsmga008.fm.intel.com with ESMTP; 25 Jul 2019 20:11:02 -0700 From: "Xu, Wei6" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao Subject: [edk2-devel][Patch 0/3] Add destructor to CloseEvent Date: Fri, 26 Jul 2019 11:10:52 +0800 Message-Id: <20190726031055.10020-1-wei6.xu@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2012 This patch set adds missing destructor for following libraries: MdePkg\Library\UefiDebugLibStdErr MdePkg\Library\UefiDebugLibConOut MdePkg\Library\UefiDebugLibDebugPortProtocol When driver is unloaded, the ExitBootSerivesEvent must be closed at the same time. Otherwise exception will occur when ExitBootServices. Cc: Michael D Kinney Cc: Liming Gao Wei6 Xu (3): MdePkg/UefiDebugLibConOut: Add destructor to CloseEvent MdePkg/UefiDebugLibDebugPortProtocol: Add destructor to CloseEvent MdePkg/UefiDebugLibStdErr: Add destructor to CloseEvent .../UefiDebugLibConOut/DebugLibConstructor.c | 23 ++++++++++++++++++++++ .../UefiDebugLibConOut/UefiDebugLibConOut.inf | 1 + .../DebugLibConstructor.c | 23 ++++++++++++++++++++++ .../UefiDebugLibDebugPortProtocol.inf | 1 + .../UefiDebugLibStdErr/DebugLibConstructor.c | 23 ++++++++++++++++++++++ .../UefiDebugLibStdErr/UefiDebugLibStdErr.inf | 1 + 6 files changed, 72 insertions(+) -- 2.16.2.windows.1