aboutsummaryrefslogtreecommitdiff
path: root/ares/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
commitd87981e4c1c85c2f20b471b8671cf2a96327fd94 (patch)
tree94f2f301e7f7feab287a3f056991960b6eee8836 /ares/ares_destroy.c
parent59091fa8602f46645dc5380f9e9c1e8abd9a326b (diff)
include ares_private.h to make sure we get the memdebug stuff included
Diffstat (limited to 'ares/ares_destroy.c')
-rw-r--r--ares/ares_destroy.c3
1 files changed, 2 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)
{