[vdr] *** glibc detected *** double free or corruption 1.4.2-1
Patch
Clemens Kirchgatterer
clemens at 1541.org
Fri Sep 8 16:02:57 CEST 2006
Hans-Werner Hilse <hilse at web.de> wrote:
> Changing the "free(aux);" to "if(aux) free(aux);" would probably care
> for that (resembling the earlier behaviour).
i know, the problem has been already fixed, but just for the record.
code like: if (bla) free(bla); will actually _never_ fix any bug.
either bla is a valid pointer and can be free'ed or bla is NULL and the
free does not hurt anyway, because one is explicitely allowed to free
NULL pointers by the standard.
clemens
More information about the vdr
mailing list