All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jes Sorensen <jes@trained-monkey.org>
To: Blazej Kucman <blazej.kucman@intel.com>, linux-raid@vger.kernel.org
Cc: colyli@suse.de
Subject: Re: [PATCH V2] Grow: fix possible memory leak
Date: Wed, 28 Dec 2022 09:59:41 -0500	[thread overview]
Message-ID: <3e493bcf-79af-2680-f5e9-162e8f67d43a@trained-monkey.org> (raw)
In-Reply-To: <20221221125254.17932-1-blazej.kucman@intel.com>

On 12/21/22 07:52, Blazej Kucman wrote:
> In function Grow_addbitmap, struct mdinfo
> may be allocated but is not freed
> in few exit paths. Add free 'mdi' variable
> in missing exit paths to avoid possible memory leak.
> 
> Signed-off-by: Blazej Kucman <blazej.kucman@intel.com>
> ---
>  Grow.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

Applied!

Thanks,
Jes



      reply	other threads:[~2022-12-28 14:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-21 12:52 [PATCH V2] Grow: fix possible memory leak Blazej Kucman
2022-12-28 14:59 ` Jes Sorensen [this message]

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-all 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=3e493bcf-79af-2680-f5e9-162e8f67d43a@trained-monkey.org \
    --to=jes@trained-monkey.org \
    --cc=blazej.kucman@intel.com \
    --cc=colyli@suse.de \
    --cc=linux-raid@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.