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 B0698D8063B for ; Sun, 27 Aug 2023 10:57:26 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=2HzxEd6ZwWrIRtQSHkGlwBlDshPCYCUOadGgio/k/AI=; 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=qKw83nkyzTZJw0h4veLvjPpvRsuPx317s74XbEsW1xkNeQ7Ojs7DJoGROqwDwzcbOrqjUF4o u0yynNL199yPvwtw62ImWW5gokJTZS5oZ06Ge/AJ5BvlwWDq9w8vJEYlAm2AspCByo/NQt7z4C8 FcQupkub81ZrUnWb0xX5Mor8= X-Received: by 127.0.0.2 with SMTP id 8oGbYY7687511xCWFUDTOZ5G; 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: G4gJW0LK5YGEeLg5qYRFQNSBx7686176AA= 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-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=qKw83nky; 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=gmail.com (policy=none) 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;=0D }=0D =0D + if (Etag !=3D NULL) {=0D + FreePool (Etag);=0D + }=0D return Status;=0D }=0D =0D 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;=0D }=0D =0D + if (Etag !=3D NULL) {=0D + FreePool (Etag);=0D + }=0D return Status;=0D }=0D =0D 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;=0D }=0D =0D + if (Etag !=3D NULL) {=0D + FreePool (Etag);=0D + }=0D return Status;=0D }=0D =0D --=20 2.32.0 (Apple Git-132) -=-=-=-=-=-=-=-=-=-=-=- 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/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-