From nobody Tue Feb 10 02:43:36 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+108046+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+108046+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1693133845; cv=none; d=zohomail.com; s=zohoarc; b=fdmf+SUuWo/YCGIcuijoG/fcfcMnWzf0HmQL+FoUcYwnef2ZFkty1l102PuzveNV7Z4987ycGvQr1MqDguhRNRDsj60D93ppc4R3cngqAPzfot2Ax/Vh5lEay6raCPkqinfJf0tb3e/WgBn9MXyt/jMba/C6jc995BuTwTkEkZI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693133845; 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=3zfOx0NB/Ym+BS6ApA1fhKHwkfIsljN3Hf0wj/iAAuc=; b=DW6+bJpZ5IX66xhdVeTliiYJthSYABr27+Qz6BwQYgx2qKbgedl5453pE/Qg2pQzSZ7U0tOMIaVt/a/DABpFrtJMKlxHXzuux/oabKcJhnbV53A60CdZNk6NhtM/uoe07k6s3otN1fa7oxXpdqk1q7xhx1gJgdRx4jWo6kP+z9w= 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+108046+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 1693133845723505.4679926816739; Sun, 27 Aug 2023 03:57:25 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=z/qucIpF3WQlt0JbUE3tqIiin6OLfqySBPY4f31ldaY=; 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=1693133845; v=1; b=dOBTet98LB1K7noKGwOkjTDIAjZGsPIQC2tUI1VDkU6fjIpWTlUNGw7O5dycDndIECyT0ZcF PJOMwLs8czANZhxR8hMxuyJ5hlk7x0djPNgCPFRxZo5CxONEYfp6f6FR+GzGp9KGykoHhHGjBw8 wws0S7u3krDPvk7FCu4RM4tU= X-Received: by 127.0.0.2 with SMTP id eCchYY1788612xXF0gdsqeaI; Sun, 27 Aug 2023 03:57:25 -0700 X-Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) by mx.groups.io with SMTP id smtpd.web10.25219.1693133844465531652 for ; Sun, 27 Aug 2023 03:57:24 -0700 X-Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2bcb50e194dso34680021fa.3 for ; Sun, 27 Aug 2023 03:57:24 -0700 (PDT) X-Gm-Message-State: 4LwBqNc7G5VgcaU3oZlw4l57x1787277AA= X-Google-Smtp-Source: AGHT+IEwca23uxwMY510wfiFygyShqqcJTtedQqb+j4dffNtGYyrR+JNt9p8ukcufi8n5V4DOambgw== X-Received: by 2002:ac2:5f4e:0:b0:4f8:49a8:a0e2 with SMTP id 14-20020ac25f4e000000b004f849a8a0e2mr13128001lfz.16.1693133842509; Sun, 27 Aug 2023 03:57:22 -0700 (PDT) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id i11-20020ac2522b000000b004fb9fe34c27sm1085825lfl.92.2023.08.27.03.57.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 27 Aug 2023 03:57:21 -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 3/5] RedfishClientPkg: fix leak of allocated Etag data Date: Sun, 27 Aug 2023 13:56:38 +0300 Message-Id: <20230827105640.94731-4-mike.maslenkin@gmail.com> In-Reply-To: <20230827105640.94731-1-mike.maslenkin@gmail.com> References: <20230827105640.94731-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: 1693133846561100013 Content-Type: text/plain; charset="utf-8" Signed-off-by: Mike Maslenkin --- RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c | 3 +++ .../Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe.c | 3 +++ RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c | 3 +++ 3 files changed, 9 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..b27f1de77660 100644 --- a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c +++ b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c @@ -220,6 +220,9 @@ 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..c5a168a06a98 100644 --- a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe= .c +++ b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe= .c @@ -164,6 +164,9 @@ 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..91fdb85d3e08 100644 --- a/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c +++ b/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c @@ -164,6 +164,9 @@ 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 (#108046): https://edk2.groups.io/g/devel/message/108046 Mute This Topic: https://groups.io/mt/100988473/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-