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 4992E941EE0 for ; Sun, 24 Dec 2023 22:59:48 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=wbW0XgqVueIyBZvU21ScG3Y9xpM0M7se8UEOUS8zCPg=; 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=1703458787; v=1; b=dS5Pm0zpEAG2mZQlzjSium0QEDYZ7Hclb3q6YJ8fREFxUhTeX5o3fkQCzrjSF2PyQ5cXVYBG oIwKHGWgjtvV+41YhiJ4qI0nn+4+1rWFI2R61fIKwN7JaKhghkf+tfinx/thUW7aLJyqvpcemTr eWfq9YPyKfyEyWArj0sOIar4= X-Received: by 127.0.0.2 with SMTP id fxywYY7687511xMbR3o8KBh5; Sun, 24 Dec 2023 14:59:47 -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.35804.1703458784473903329 for ; Sun, 24 Dec 2023 14:59:44 -0800 X-Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-50e7c6f0487so90814e87.3 for ; Sun, 24 Dec 2023 14:59:44 -0800 (PST) X-Gm-Message-State: cqM5ddIGzjSbeSths47SSieqx7686176AA= X-Google-Smtp-Source: AGHT+IHVxYGERdMoCwcZH1t/84HFH/TeaAixVvJtCdIvOU7RTI9XsWG+MhnOFQ8rKnRdnzgJJhVOYg== X-Received: by 2002:a19:5203:0:b0:50e:7401:da63 with SMTP id m3-20020a195203000000b0050e7401da63mr350925lfb.64.1703458782634; Sun, 24 Dec 2023 14:59:42 -0800 (PST) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id be44-20020a056512252c00b0050e78f5178asm326596lfb.262.2023.12.24.14.59.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 24 Dec 2023 14:59:42 -0800 (PST) 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 v3 14/16] RedfishDiscoverDxe: release resources when refreshing information data Date: Mon, 25 Dec 2023 01:59:25 +0300 Message-Id: <20231224225927.9119-15-mike.maslenkin@gmail.com> In-Reply-To: <20231224225927.9119-1-mike.maslenkin@gmail.com> References: <20231224225927.9119-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=dS5Pm0zp; 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 It is required to free previously allocated strings stored in DiscoveredInstance->Information structure. Cc: Abner Chang Cc: Nickle Wang Cc: Igor Kulchytskyy Signed-off-by: Mike Maslenkin --- RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c b/RedfishPk= g/RedfishDiscoverDxe/RedfishDiscoverDxe.c index ff0c3ff1d1f5..bbd1f4b86400 100644 --- a/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c +++ b/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c @@ -961,6 +961,8 @@ AddAndSignalNewRedfishService ( FreePool ((VOID *)DiscoveredList);=0D return EFI_OUT_OF_RESOURCES;=0D }=0D + } else {=0D + FreeInformationData (&DiscoveredInstance->Information);=0D }=0D =0D DEBUG ((DEBUG_MANAGEABILITY, "*** Redfish Service Information ***\n"))= ;=0D --=20 2.32.0 (Apple Git-132) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112873): https://edk2.groups.io/g/devel/message/112873 Mute This Topic: https://groups.io/mt/103354133/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-