diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-17 07:40:31 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-17 07:40:31 +0000 |
commit | d87981e4c1c85c2f20b471b8671cf2a96327fd94 (patch) | |
tree | 94f2f301e7f7feab287a3f056991960b6eee8836 /ares | |
parent | 59091fa8602f46645dc5380f9e9c1e8abd9a326b (diff) |
include ares_private.h to make sure we get the memdebug stuff included
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares_destroy.c | 3 | ||||
-rw-r--r-- | ares/ares_expand_name.c | 1 | ||||
-rw-r--r-- | ares/ares_free_hostent.c | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/ares/ares_destroy.c b/ares/ares_destroy.c index e9b1bfd07..4e99a89f5 100644 --- a/ares/ares_destroy.c +++ b/ares/ares_destroy.c @@ -28,7 +28,8 @@ void ares_destroy(ares_channel channel) for (i = 0; i < channel->ndomains; i++) free(channel->domains[i]); free(channel->domains); - free(channel->sortlist); + if(channel->sortlist) + free(channel->sortlist); free(channel->lookups); while (channel->queries) { diff --git a/ares/ares_expand_name.c b/ares/ares_expand_name.c index 3c028158b..b242abf0f 100644 --- a/ares/ares_expand_name.c +++ b/ares/ares_expand_name.c @@ -24,6 +24,7 @@ #include <stdlib.h> #include "ares.h" +#include "ares_private.h" /* for the memdebug */ static int name_length(const unsigned char *encoded, const unsigned char *abuf, int alen); diff --git a/ares/ares_free_hostent.c b/ares/ares_free_hostent.c index 52de303fa..177dd768b 100644 --- a/ares/ares_free_hostent.c +++ b/ares/ares_free_hostent.c @@ -22,6 +22,7 @@ #endif #include "ares.h" +#include "ares_private.h" /* for memdebug */ void ares_free_hostent(struct hostent *host) { |