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 ACDB4D801D3 for ; Thu, 1 Feb 2024 00:41:37 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=WvKRwD8tfYNNQtejGeY/DCyBfqOxDrnRDDYQ9GDOaUc=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id: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=1706748096; v=1; b=s72IMYROnU165uAZyvdb1+FqrqSCXl0yjRUsDAuawOIsYCAhXhM7ranmBIfSpl0pgWeYiz2n w5TYBwlUEA5NdiN3yRtwmn04uSD9Jl9zCO35QHfy192dVAK6/G/H9YyFqLCWSUImXCpUnXjCtqy jaNb0R14GVl6XEHi+Te3z/AQ= X-Received: by 127.0.0.2 with SMTP id CVykYY7687511xJqbnZkG3kr; Wed, 31 Jan 2024 16:41:36 -0800 X-Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) by mx.groups.io with SMTP id smtpd.web11.4538.1706748095382462840 for ; Wed, 31 Jan 2024 16:41:35 -0800 X-Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d0600551ebso4966411fa.2 for ; Wed, 31 Jan 2024 16:41:35 -0800 (PST) X-Gm-Message-State: j3NAZqAn25p0KHPO6Ca7y0TTx7686176AA= X-Google-Smtp-Source: AGHT+IHaCOEJkFyoFOtJScz9YMLbqrP/qZOc4zT3wdjtFKXTR/meLOInl8nFudtRQLN3R/tAJhqt6w== X-Received: by 2002:a2e:b910:0:b0:2d0:4d1f:7678 with SMTP id b16-20020a2eb910000000b002d04d1f7678mr2020075ljb.49.1706748091156; Wed, 31 Jan 2024 16:41:31 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWjh5K6kRmKrAiKbvLBcEXU4e45tcWEC3OsatvhCC/I0+VYP45NDmFyXsnZYnTht1a3yg4zptFY06T3hOZR37julqDctc4hknNWqMA4v1UQ0Z+2lfF4/Lb31nNOFqFRtvcHeRCPT78= X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id t22-20020a2e9d16000000b002d0481df41bsm1425144lji.107.2024.01.31.16.41.30 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 31 Jan 2024 16:41:30 -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] RedfishClientPkg/RedfishFeatureUtilityLib: fix memory leak on error path Date: Thu, 1 Feb 2024 03:41:27 +0300 Message-Id: <20240201004127.27660-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=s72IMYRO; 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 Cc: Abner Chang Cc: Igor Kulchytskyy Cc: 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 (#114924): https://edk2.groups.io/g/devel/message/114924 Mute This Topic: https://groups.io/mt/104087507/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-