Hi,
A colleague ran Coverity (a static analysis tool) against c-ares and fixed a few reported errors and warnings.
Please have a look at the attached patch.
Thanks.