From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 15E4DAC1103 for ; Fri, 23 Feb 2024 08:31:14 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=DhmxCu/rdAGu1VRtd1P/EhJiuGCYQegvtNIPeJmw7z4=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1708677073; v=1; b=JpSy7bQvH+8iEjfSchUj8e4RICFp/vZRIwPg9dg+onxLV9arqDtsdzX5uuz5P575HYefE9ak /7zSh57l5JEceKD1ANPfe28/espIzfP/iof/QSQXFSbs+uDQKLNK12/XRVhjs5/qhnSLvvvGD3Z 5anTxsncgK12qmUu1sUAujFM= X-Received: by 127.0.0.2 with SMTP id qnPZYY7687511xNLDNEcA2BZ; Fri, 23 Feb 2024 00:31:13 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mx.groups.io with SMTP id smtpd.web11.4946.1708668138460163247 for ; Thu, 22 Feb 2024 22:02:19 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="3472405" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="3472405" X-Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 22:01:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="6279911" X-Received: from ppabbax-desk1.gar.corp.intel.com ([10.66.254.59]) by orviesa008.jf.intel.com with ESMTP; 22 Feb 2024 22:01:33 -0800 From: phanindrax.babu.pabba@intel.com To: devel@edk2.groups.io Cc: PhanindraX Babu Pabba , Chasel Chiu , Nate DeSimone , Liming Gao , Eric Dong Subject: [edk2-devel] [PATCH] MinPlatformPkg: Add missed call to FreePool Date: Fri, 23 Feb 2024 11:31:20 +0530 Message-Id: <03a7571c56639af46ecc7b59ac2aa65ee2ceacdf.1708667871.git.phanindrax.babu.pabba@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,phanindrax.babu.pabba@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: bQteOAEsGYfFqJLU4EekXXCXx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=JpSy7bQv; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io From: PhanindraX Babu Pabba Adding missed out call to FreePool API to free the allocated memory. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong Signed-off-by: PhanindraX Babu Pabba --- Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c | 2 +- Platform/Intel/MinPlatformPkg/Acpi/MinDsdt/MinDsdt.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c b= /Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c index 2a833ec9..f637e1c9 100644 --- a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c +++ b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c @@ -1002,7 +1002,7 @@ InstallMcfgFromScratch ( McfgTable->Header.Length,=0D &TableHandle=0D );=0D -=0D + FreePool (McfgTable);=0D return Status;=0D }=0D =0D diff --git a/Platform/Intel/MinPlatformPkg/Acpi/MinDsdt/MinDsdt.c b/Platfor= m/Intel/MinPlatformPkg/Acpi/MinDsdt/MinDsdt.c index 9bc22245..f5b1a71c 100644 --- a/Platform/Intel/MinPlatformPkg/Acpi/MinDsdt/MinDsdt.c +++ b/Platform/Intel/MinPlatformPkg/Acpi/MinDsdt/MinDsdt.c @@ -195,6 +195,7 @@ PublishAcpiTablesFromFv ( // Increment the instance=0D //=0D Instance++;=0D + FreePool (CurrentTable);=0D CurrentTable =3D NULL;=0D }=0D }=0D --=20 2.39.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115875): https://edk2.groups.io/g/devel/message/115875 Mute This Topic: https://groups.io/mt/104524859/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-