Re: [PATCH] include/linux/slab.h: new KFREE() macro.

Pekka Enberg
2007-01-08T08:00:43Z

On 1/8/07, Hua Zhong <hzhong@gmail.com> wrote:
> > And as I explained, it can result in longer code too. So, why
> > keep this value around. Why not re-initialize it to NULL.
>
> Because initialization increases code size.

And it also effectively blocks the slab debugging code from doing its
job detecting double-frees.