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 03137D8062F for ; Wed, 27 Mar 2024 19:40:40 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=8+USDXY1C/4QvgqC2vvqosRSaItaTUFr4w086VM7eIk=; 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:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1711568439; v=1; b=lYWyIMCL6B1r1VHLXe8wj6A/x48RSjSsbttY3NURY96OI/ogpxEMBqpgz6C2B3RJIPcFTwmg G8xqfb7yqLalw+MgW/zUoCubvA6tdFAuBRsAeFn1Ca5oP16/j9UZtpSAVYmFMAclpTO+Jr2GwIu 7TTi0kxtoX3VrBrMNEvr7NlqwWGlLgziCZdWFdetWM/4BILvRN2e9kT25WuW+eVqxkolMijQcmH QS15HV5+E8w2wpZI2ppvCWUWhV2HpLVvcoSwKrntdKdRW9BeSYHDeyqenNKedjXu8lC/3cwBCTH 1UKgx21VjVAgMCN1EfvVZLCm+VXxkmG9VV59KHp6/K6Qw== X-Received: by 127.0.0.2 with SMTP id UKWlYY7687511xFYnsGNHFvA; Wed, 27 Mar 2024 12:40:39 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by mx.groups.io with SMTP id smtpd.web10.2306.1711566619436896256 for ; Wed, 27 Mar 2024 12:10:19 -0700 X-CSE-ConnectionGUID: Xe97fg1HTBe0OsqDUhJy0g== X-CSE-MsgGUID: ZChXUFsLQF+pWU6qU2xJHQ== X-IronPort-AV: E=McAfee;i="6600,9927,11026"; a="18127338" X-IronPort-AV: E=Sophos;i="6.07,159,1708416000"; d="scan'208";a="18127338" X-Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2024 12:10:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,159,1708416000"; d="scan'208";a="16329153" X-Received: from ppabbax-desk1.gar.corp.intel.com ([10.66.254.59]) by orviesa009.jf.intel.com with ESMTP; 27 Mar 2024 12:10:16 -0700 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: Thu, 28 Mar 2024 00:40:05 +0530 Message-Id: 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 Resent-Date: Wed, 27 Mar 2024 12:40:38 -0700 Reply-To: devel@edk2.groups.io,phanindrax.babu.pabba@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: t4mcZcU2yzkiXJy2kEFLGQmPx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=lYWyIMCL; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) From: PhanindraX Babu Pabba Adding missed out call to FreePool API to free the allocated memory. Signed-off-by: PhanindraX Babu Pabba Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong --- 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 (#117180): https://edk2.groups.io/g/devel/message/117180 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] -=-=-=-=-=-=-=-=-=-=-=-