On Sun, Jul 8, 2012 at 4:31 AM, Michael Stapelberg <[email protected]> wrote: > > 1) You are not using FREE(last_urgent_ws);, but free(last_urgent_ws) in > line 1489, which is unsafe (it is not guaranteed that last_urgent_ws > is != NULL).
There is no such guarantee needed for free() as per the C99 Standard: 7.20.3.2 The free function 2 The free function causes the space pointed to by ptr to be deallocated, that is, made available for further allocation. If ptr is a null pointer, no action occurs. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net
