From nobody Mon Feb 9 16:50:51 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+108081+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108081+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1693296084; cv=none; d=zohomail.com; s=zohoarc; b=UkJo8rkJI/lijMWi4jzJgxtCDaN+wii9+e+cCX7ofujwIlmWE7/EBsl8yfG6GpO9C7+N8gNT9N/krnhuoO+ubbF1CFbDxsrjJTrd26Oj1e95z7zYp2yGjT1Tj4tBivteL/EpnjzbO9W5A/ZUBTPVzTNYeEm9iCydXw3r2Plviz8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693296084; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=dLWDp9Hl1oJmERianA0Z+b8E8xGZekmtM6iXnsFSwSI=; b=FlSrG/Yrb6QIuGXR0NkE5qRoufKkv1s3tpUGYsCeShMLaFeEQGCmea2uY2P4jk1g/lGG56VPiClrlZTIvA7nRE/4gsJRFO1b87cHrRLTbhFIm4etjO6PsRu85jiZXYIQqJk6RklZH8fmFwg+PoSwyQBcF28EJED0z1H5/WnL/i8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108081+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1693296084407385.28213220716725; Tue, 29 Aug 2023 01:01:24 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=MO3xOoCsq0erGQF1Wu49l/cY56hB/jJqnQ5y/R+3Ce0=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: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=1693296084; v=1; b=SokbwcBikRoh1Xl80e1mSpI6GNa4KbkWwOZnVeV5N+IpjcOzSmxgTx3JKS4OP25JEy9sRlfZ d7ySScLU68BZI1QY6V8NoB+wisy04wgdS3jJ9VLE4ETGHs8ymIclq+1Ans5Go1Jk3E+f4CpPsDZ NPVr1ETzd/EnRvkV3GXrCHC8= X-Received: by 127.0.0.2 with SMTP id 7PT2YY1788612xvPAqRoLMQP; Tue, 29 Aug 2023 01:01:24 -0700 X-Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) by mx.groups.io with SMTP id smtpd.web11.12655.1693296083132047584 for ; Tue, 29 Aug 2023 01:01:23 -0700 X-Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2bcb50e194dso61921461fa.3 for ; Tue, 29 Aug 2023 01:01:22 -0700 (PDT) X-Gm-Message-State: UGZlx6ttrw16sZWEPmMYxg9Mx1787277AA= X-Google-Smtp-Source: AGHT+IExhTXTKl/NMvFSvJo3X+2+tLmNsN0vZXlnIwRcGyiOp6MOoO5ajdWGfTQEhRT3ZesLiaujQw== X-Received: by 2002:a2e:8687:0:b0:2bc:d993:bdaa with SMTP id l7-20020a2e8687000000b002bcd993bdaamr14370585lji.18.1693296081020; Tue, 29 Aug 2023 01:01:21 -0700 (PDT) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id h10-20020a2e900a000000b002ba130e9a29sm2077325ljg.76.2023.08.29.01.01.20 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 29 Aug 2023 01:01:20 -0700 (PDT) From: "Mike Maslenkin" To: devel@edk2.groups.io Cc: abner.chang@amd.com, nicklew@nvidia.com, igork@ami.com, Mike Maslenkin Subject: [edk2-devel] [PATCH v2 3/6] RedfishClientPkg: fix leak of allocated Etag data Date: Tue, 29 Aug 2023 11:01:09 +0300 Message-Id: <20230829080112.12748-4-mike.maslenkin@gmail.com> In-Reply-To: <20230829080112.12748-1-mike.maslenkin@gmail.com> References: <20230829080112.12748-1-mike.maslenkin@gmail.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,mike.maslenkin@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1693296085682100015 Content-Type: text/plain; charset="utf-8" Signed-off-by: Mike Maslenkin Reviewed-by: Nickle Wang --- RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c | 4 ++++ .../Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe.c | 4 ++++ RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c b/RedfishC= lientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c index f5562fb49cab..32dca964aa0a 100644 --- a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c +++ b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c @@ -220,6 +220,10 @@ RedfishResourceConsumeResource ( Private->Json =3D NULL; } =20 + if (Etag !=3D NULL) { + FreePool (Etag); + } + return Status; } =20 diff --git a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSy= stemDxe.c b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSys= temDxe.c index 91968dbe488f..5c2a4eadf2f4 100644 --- a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe= .c +++ b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe= .c @@ -164,6 +164,10 @@ RedfishResourceConsumeResource ( Private->Json =3D NULL; } =20 + if (Etag !=3D NULL) { + FreePool (Etag); + } + return Status; } =20 diff --git a/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c b/Redf= ishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c index c55a6848c74e..f34f3266f1ee 100644 --- a/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c +++ b/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c @@ -164,6 +164,10 @@ RedfishResourceConsumeResource ( Private->Json =3D NULL; } =20 + if (Etag !=3D NULL) { + FreePool (Etag); + } + return Status; } =20 --=20 2.32.0 (Apple Git-132) -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108081): https://edk2.groups.io/g/devel/message/108081 Mute This Topic: https://groups.io/mt/101027005/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-