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

Zwane Mwaikambo
2003-03-14T08:01:46Z

On Fri, 14 Mar 2003, Oleg Drokin wrote:

> Well, my argument is code uniformness which was always valid as long as it does not
> introduce any bugs, I think.
> Do you propose somebody should go and fix all
> if ( something )
> kfree(something);
> pieces of code to read just
> kfree(something); ?

It's defined that kfree(NULL) is valid. I tried the above mentioned
'cleanup' a while ago, way too noisy.

Zwane