From: "Nickle Wang via groups.io" <nicklew=nvidia.com@groups.io>
To: Mike Maslenkin <mike.maslenkin@gmail.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "abner.chang@amd.com" <abner.chang@amd.com>,
"igork@ami.com" <igork@ami.com>
Subject: Re: [edk2-devel] [PATCH v2 1/3] RedfishPkg: fix memory leak in HiiUtilityLib
Date: Thu, 23 Nov 2023 00:17:37 +0000 [thread overview]
Message-ID: <MW4PR12MB703187F15AA099AC28DAAA50D9B9A@MW4PR12MB7031.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20231123000103.31216-2-mike.maslenkin@gmail.com>
Thanks for fixing memory leak issue.
Reviewed-by: Nickle Wang <nicklew@nvidia.com>
Regards,
Nickle
> -----Original Message-----
> From: Mike Maslenkin <mike.maslenkin@gmail.com>
> Sent: Thursday, November 23, 2023 8:01 AM
> To: devel@edk2.groups.io
> Cc: abner.chang@amd.com; Nickle Wang <nicklew@nvidia.com>;
> igork@ami.com
> Subject: [PATCH v2 1/3] RedfishPkg: fix memory leak in HiiUtilityLib
>
> External email: Use caution opening links or attachments
>
>
> Cc: Abner Chang <abner.chang@amd.com>
> Cc: Nickle Wang <nicklew@nvidia.com>
> Cc: Igor Kulchytskyy <igork@ami.com>
> Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
> ---
> RedfishPkg/Library/HiiUtilityLib/HiiUtilityLib.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/RedfishPkg/Library/HiiUtilityLib/HiiUtilityLib.c
> b/RedfishPkg/Library/HiiUtilityLib/HiiUtilityLib.c
> index 168b4459844f..fd322c2086d8 100644
> --- a/RedfishPkg/Library/HiiUtilityLib/HiiUtilityLib.c
> +++ b/RedfishPkg/Library/HiiUtilityLib/HiiUtilityLib.c
> @@ -388,11 +388,13 @@ SetQuestionValue (
> Question->Value.BufferLen = Question->StorageWidth;
>
> Question->Value.Buffer = AllocateZeroPool (Question->StorageWidth);
>
> if (Question->Value.Buffer == NULL) {
>
> + FreePool (TemString);
>
> return EFI_OUT_OF_RESOURCES;
>
> }
>
>
>
> CopyMem (Question->Value.Buffer, TemString, StrSize (TemString));
>
> Src = Question->Value.Buffer;
>
> + FreePool (TemString);
>
> } else {
>
> CopyMem (&Question->Value.Value, &QuestionValue->Value, sizeof
> (EFI_IFR_TYPE_VALUE));
>
> Src = (UINT8 *)&Question->Value.Value;
>
> --
> 2.32.0 (Apple Git-132)
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#111631): https://edk2.groups.io/g/devel/message/111631
Mute This Topic: https://groups.io/mt/102759077/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2023-11-23 0:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-23 0:01 [edk2-devel] [PATCH v2 0/3] RedfishPkg: refine HiiUtilityLib and fix USB NIC discovering Mike Maslenkin
2023-11-23 0:01 ` [edk2-devel] [PATCH v2 1/3] RedfishPkg: fix memory leak in HiiUtilityLib Mike Maslenkin
2023-11-23 0:17 ` Nickle Wang via groups.io [this message]
2023-11-23 0:01 ` [edk2-devel] [PATCH v2 2/3] RedfishPkg: add explicit variable initialization Mike Maslenkin
2023-11-23 0:18 ` Nickle Wang via groups.io
2023-11-23 0:01 ` [edk2-devel] [PATCH v2 3/3] RedfishPkg: fix searching for the BMC-exposed USB NIC Mike Maslenkin
2023-11-23 0:24 ` Nickle Wang via groups.io
2023-11-23 1:20 ` Chang, Abner via groups.io
[not found] ` <179A1BD569EE113B.9514@groups.io>
2023-11-23 3:06 ` Chang, Abner via groups.io
2023-11-26 20:40 ` Mike Maslenkin
2023-11-27 2:25 ` Chang, Abner via groups.io
2023-11-30 0:24 ` Mike Maslenkin
2023-11-30 3:13 ` Chang, Abner via groups.io
2023-11-23 3:05 ` Chang, Abner via groups.io
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MW4PR12MB703187F15AA099AC28DAAA50D9B9A@MW4PR12MB7031.namprd12.prod.outlook.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox