From: NeilBrown <neilb@suse.de>
To: Thomas Jarosch <thomas.jarosch@intra2net.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: [mdadm PATCH] Fix small memory leak
Date: Wed, 7 Sep 2011 18:11:01 +1000 [thread overview]
Message-ID: <20110907181101.24518c64@notabene.brown> (raw)
In-Reply-To: <4E573031.9080007@intra2net.com>
On Fri, 26 Aug 2011 07:33:37 +0200 Thomas Jarosch
<thomas.jarosch@intra2net.com> wrote:
> Found by cppcheck
>
> Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
> ---
> config.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/config.c b/config.c
> index ad75411..c0a6baa 100644
> --- a/config.c
> +++ b/config.c
> @@ -707,6 +707,8 @@ void autoline(char *line)
> for (i = 0; i < super_cnt; i++)
> if (!seen[i])
> policy_add(rule_policy, pol_auto, dflt, pol_metadata, superlist[i]->name, NULL);
> +
> + free(seen);
> }
>
> int loaded = 0;
Applied, thanks.
NeilBrown
next prev parent reply other threads:[~2011-09-07 8:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-26 5:33 [mdadm PATCH] Fix small memory leak Thomas Jarosch
2011-09-07 8:11 ` NeilBrown [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-10-02 19:45 Thomas Jarosch
2011-10-02 21:31 ` NeilBrown
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=20110907181101.24518c64@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=thomas.jarosch@intra2net.com \
/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;
as well as URLs for NNTP newsgroup(s).