All of lore.kernel.org
 help / color / mirror / Atom feed
From: Li RongQing <roy.qing.li@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH] net: sysctl: fix a kmemleak warning
Date: Fri, 23 Oct 2015 17:54:47 +0800	[thread overview]
Message-ID: <CAJFZqHyDyU4biPAjobp9V=CpHKXJvoveCX_cWQjVrLhZ7GiHZw@mail.gmail.com> (raw)
In-Reply-To: <20151023.030444.704308961251594308.davem@davemloft.net>

On Fri, Oct 23, 2015 at 6:04 PM, David Miller <davem@davemloft.net> wrote:
>> +out1:
>> +     unregister_sysctl_table(net_header);
>> +     kfree(net_header);
>
> I read over unregister_sysctl_table() and it appears to do the kfree()
> for us, doesn't it?


you are right, thanks

-Roy

      reply	other threads:[~2015-10-23  9:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-22  3:27 [PATCH] net: sysctl: fix a kmemleak warning roy.qing.li
2015-10-23 10:04 ` David Miller
2015-10-23  9:54   ` Li RongQing [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='CAJFZqHyDyU4biPAjobp9V=CpHKXJvoveCX_cWQjVrLhZ7GiHZw@mail.gmail.com' \
    --to=roy.qing.li@gmail.com \
    --cc=davem@davemloft.net \
    --cc=netdev@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.