On Wed, Mar 6, 2013 at 6:16 PM, Massimo <ctrix+cares_at_navynet.it> wrote:
> has anyone noticed that there is not ares_free_soa() anywhere in the code ?
> There is the declaration in ares.h but the function is nowhere else.
>
> I checked in the last release and in the last snapshot as well.
>
> Am i missing something ?
It's accidental leftover.
Use ares_free_data() to free the ares_soa_reply struct.
Please apply the following patch to GIT.
-- marko diff --git a/ares.h b/ares.h index e6ee1ca..276b317 100644 --- a/ares.h +++ b/ares.h @@ -553,8 +553,6 @@ CARES_EXTERN void ares_free_string(void *str); CARES_EXTERN void ares_free_hostent(struct hostent *host); -CARES_EXTERN void ares_free_soa(struct ares_soa_reply *soa); - CARES_EXTERN void ares_free_data(void *dataptr); CARES_EXTERN const char *ares_strerror(int code);Received on 2013-03-07