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

From: Russell King (rmk@arm.linux.org.uk)
Date: Thu Mar 13 2003 - 17:03:08 EST


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
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Mar 15 2003 - 22:00:36 EST