diff options
Diffstat (limited to 'ares_parse_mx_reply.c')
-rw-r--r-- | ares_parse_mx_reply.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ares_parse_mx_reply.c b/ares_parse_mx_reply.c index 95400dd..e633647 100644 --- a/ares_parse_mx_reply.c +++ b/ares_parse_mx_reply.c @@ -76,7 +76,7 @@ ares_parse_mx_reply (const unsigned char *abuf, int alen, if (aptr + len + QFIXEDSZ > abuf + alen) { - free (hostname); + ares_free (hostname); return ARES_EBADRESP; } aptr += len + QFIXEDSZ; @@ -143,7 +143,7 @@ ares_parse_mx_reply (const unsigned char *abuf, int alen, } /* Don't lose memory in the next iteration */ - free (rr_name); + ares_free (rr_name); rr_name = NULL; /* Move on to the next record */ @@ -151,9 +151,9 @@ ares_parse_mx_reply (const unsigned char *abuf, int alen, } if (hostname) - free (hostname); + ares_free (hostname); if (rr_name) - free (rr_name); + ares_free (rr_name); /* clean up on error */ if (status != ARES_SUCCESS) |