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 EE007AC0410 for ; Wed, 21 Feb 2024 00:13:10 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=EdhoWq9qBPf1unDVsaj7uEfIP4gNiRYpx+AOatD4ntQ=; 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=1708474389; v=1; b=BI3acsSD1D3XDB/AmlrbXB3zD0yrC1URRkafcWiU3R11GhE9j5AyOrH8xn5EAAUBs+om1fuv wylb+TO1iyQmj3YiTtwbVNawG0iTnXQcwskIL65Rx1K6dg2NpLhdsDT95VHqFZtO6W0DTqvu3I5 V/cy0UMr2noFxe/ypMc40nFU= X-Received: by 127.0.0.2 with SMTP id PLDKYY7687511x5OQKrL2HjL; Tue, 20 Feb 2024 16:13:09 -0800 X-Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) by mx.groups.io with SMTP id smtpd.web10.1916.1708474388835234713 for ; Tue, 20 Feb 2024 16:13:09 -0800 X-Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-512be6fda52so2773884e87.0 for ; Tue, 20 Feb 2024 16:13:08 -0800 (PST) X-Gm-Message-State: GsuBCIOX2GqwvmTy713cYc8Ex7686176AA= X-Google-Smtp-Source: AGHT+IExjxO4yMvPabsSHB30SZHiyT4jGWoE61u+ue4xMjroZxMrsWVe1tWdlw5dGVWSWYINCeEM4w== X-Received: by 2002:a19:7003:0:b0:512:abeb:96f3 with SMTP id h3-20020a197003000000b00512abeb96f3mr5202200lfc.39.1708474386742; Tue, 20 Feb 2024 16:13:06 -0800 (PST) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id h27-20020a056512055b00b0051298559337sm1447103lfl.3.2024.02.20.16.13.05 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Feb 2024 16:13:06 -0800 (PST) From: "Mike Maslenkin" To: devel@edk2.groups.io Cc: Mike Maslenkin , Igor Kulchytskyy , Nickle Wang , Abner Chang Subject: [edk2-devel] [PATCH 1/4] RedfishClientPkg/RedfishFeatureUtilityLib: fix memory leak on error path Date: Wed, 21 Feb 2024 03:13:00 +0300 Message-Id: <20240221001303.57384-2-mike.maslenkin@gmail.com> In-Reply-To: <20240221001303.57384-1-mike.maslenkin@gmail.com> References: <20240221001303.57384-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=BI3acsSD; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.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 Cc: Igor Kulchytskyy Cc: Nickle Wang Signed-off-by: Mike Maslenkin Reviewed-by: Abner Chang --- .../Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatu= reUtilityLib.c b/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishF= eatureUtilityLib.c index e1494471038c..21ce8ddad9d5 100644 --- a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtili= tyLib.c +++ b/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtili= tyLib.c @@ -4010,6 +4010,7 @@ RedfishRemoveUnchangeableProperties ( (RedfishCS_uint32)AsciiStrSize (*JsonString)=0D );=0D if (Status !=3D RedfishCS_status_success) {=0D + FreePool (UpdatedJsonString);=0D return EFI_DEVICE_ERROR;=0D }=0D =0D --=20 2.32.0 (Apple Git-132) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115685): https://edk2.groups.io/g/devel/message/115685 Mute This Topic: https://groups.io/mt/104479571/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-