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

Russell King
2003-03-13T21:54:20Z

On Fri, Mar 14, 2003 at 12:01:44AM +0300, Oleg Drokin wrote:
> + if (buf)
> + kfree(buf);

kfree(NULL); is valid - you don't need this check.

--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux