Re: [2.4] init/do_mounts.c::rd_load_image() memleak

Jens Axboe
2003-03-14T07:49:18Z

On Fri, Mar 14 2003, Oleg Drokin wrote:
> Hello!
>
> On Thu, Mar 13, 2003 at 10:03:08PM +0000, Russell King wrote:
>
> > > + if (buf)
> > > + kfree(buf);
> > kfree(NULL); is valid - you don't need this check.
>
> Almost every place I can think of does just this, so I do not see why this
> particular piece of code should be different.

Since when has that been a valid argument? :)

--
Jens Axboe