/**
* Frees memory and doesn't crash if that memory is NULL
* @mem Memory to free or NULL
*/
void
px_free(void *mem)
{
if (!mem) return;
free(mem);
}
free(NULL) is safe. It does not crash. Really. Try it.
Original issue reported on code.google.com by vda.li...@googlemail.com on 23 Feb 2010 at 4:10
Original issue reported on code.google.com by
vda.li...@googlemail.com
on 23 Feb 2010 at 4:10