On Mon, 13 Jun 2011, Jakub Hrozek wrote:
> Currently, ares_free_hostent(NULL) would crash as it dereferences the "host"
> parameter unconditionally. I think that the function should just quit when
> passed NULL, similar to what most free functions do.
>
> The most important rationale being that it simplifies cleanup as you can
> just initialize pointers to NULL at declaration time and at cleanup, just
> free them all.
Thanks, applied (but I added a newline as I think it follows our general code
style better).
-- / daniel.haxx.seReceived on 2011-06-13