[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJFZqHyDyU4biPAjobp9V=CpHKXJvoveCX_cWQjVrLhZ7GiHZw@mail.gmail.com>
Date: Fri, 23 Oct 2015 17:54:47 +0800
From: Li RongQing <roy.qing.li@...il.com>
To: David Miller <davem@...emloft.net>
Cc: netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH] net: sysctl: fix a kmemleak warning
On Fri, Oct 23, 2015 at 6:04 PM, David Miller <davem@...emloft.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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists