summaryrefslogtreecommitdiff
path: root/ares_destroy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-17 07:40:31 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-17 07:40:31 +0000
commit438444b72f76c4216544976c152620f4d5017568 (patch)
tree8fda84276c9c56a2a6653f90219c89071cea3cf4 /ares_destroy.c
parentc0f9b281774a68c7d468a289fc955f588cd6d1cd (diff)
downloadc-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
Diffstat (limited to 'ares_destroy.c')
-rw-r--r--ares_destroy.c3
1 files changed, 2 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)
{