Re: [PATCH] if (foo) kfree(foo) /fs cleanup

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 1 Dec 2001 12:45:26 +0000 (GMT)


IMHO this is precisely the wrong thing to do.

We should make the = NULL check within kfree do a BUG() call. That way we
fix the cases not being considered instead of hiding real bugs
-
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/