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 | 438444b72f76c4216544976c152620f4d5017568 (patch) | |
tree | 8fda84276c9c56a2a6653f90219c89071cea3cf4 | |
parent | c0f9b281774a68c7d468a289fc955f588cd6d1cd (diff) | |
download | c-ares-438444b72f76c4216544976c152620f4d5017568.tar.gz c-ares-438444b72f76c4216544976c152620f4d5017568.tar.bz2 c-ares-438444b72f76c4216544976c152620f4d5017568.zip |
include ares_private.h to make sure we get the memdebug stuff included
-rw-r--r-- | ares_destroy.c | 3 | ||||
-rw-r--r-- | ares_expand_name.c | 1 | ||||
-rw-r--r-- | ares_free_hostent.c | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/ares_destroy.c b/ares_destroy.c index e9b1bfd..4e99a89 100644 --- a/ares_destroy.c +++ b/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_expand_name.c b/ares_expand_name.c index 3c02815..b242abf 100644 --- a/ares_expand_name.c +++ b/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_free_hostent.c b/ares_free_hostent.c index 52de303..177dd76 100644 --- a/ares_free_hostent.c +++ b/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) { |