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 38C63AC1999 for ; Wed, 21 Feb 2024 20:06:38 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=h2at2SPUllaw/C9e8GAzlAqXnpvUBScZxfaedMGlbD4=; 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=1708545996; v=1; b=ixTqLUvxFed9hXPXXOJxYwpsA40Bvdtszi5MPwSpQu9WNw/REy+ndGD1uj32aSKY3ZJv8utt iUsP/7UixxW9pWyT702421q5jmt7eoVtm9LBlxhrvm7W+LPwtIR7FYgZ9hLV/xsQlNO4nXdLt7X vsl9Z2P2sU85g+CGAG24rj6Y= X-Received: by 127.0.0.2 with SMTP id huTkYY7687511x0fHbQSJ3fQ; Wed, 21 Feb 2024 12:06:36 -0800 X-Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by mx.groups.io with SMTP id smtpd.web11.1171.1708545996074217637 for ; Wed, 21 Feb 2024 12:06:36 -0800 X-Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-512be6fda52so4049805e87.0 for ; Wed, 21 Feb 2024 12:06:35 -0800 (PST) X-Gm-Message-State: ipqHGDz0LkOK145Jp0idQEryx7686176AA= X-Google-Smtp-Source: AGHT+IFKxhR8DoRZktdvdPoj5vwUEhoWS54vkjDand9bQ0c48+OIpPkZoSwejCNS/k8F3PpdURaeFg== X-Received: by 2002:ac2:4572:0:b0:512:d90d:c1f6 with SMTP id k18-20020ac24572000000b00512d90dc1f6mr448438lfm.24.1708545993779; Wed, 21 Feb 2024 12:06:33 -0800 (PST) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id a12-20020a056512020c00b00512da6d23b6sm44973lfo.147.2024.02.21.12.06.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 21 Feb 2024 12:06:33 -0800 (PST) From: "Mike Maslenkin" To: devel@edk2.groups.io Cc: Mike Maslenkin , Abner Chang , Igor Kulchytskyy , Nickle Wang Subject: [edk2-devel] [edk2-redfish-client][PATCH v2 1/4] RedfishClientPkg/RedfishFeatureUtilityLib: fix memory leak on error path Date: Wed, 21 Feb 2024 23:06:25 +0300 Message-Id: <20240221200628.74174-2-mike.maslenkin@gmail.com> In-Reply-To: <20240221200628.74174-1-mike.maslenkin@gmail.com> References: <20240221200628.74174-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=ixTqLUvx; 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: Abner Chang Cc: Igor Kulchytskyy Cc: Nickle Wang Signed-off-by: Mike Maslenkin Reviewed-by: Abner Chang Reviewed-by: Nickle Wang --- .../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 (#115735): https://edk2.groups.io/g/devel/message/115735 Mute This Topic: https://groups.io/mt/104495954/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-