*** glibc detected *** double free or corruption 1.4.2-1 Patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hans-Werner Hilse <hilse@xxxxxx> 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


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux