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 /ares_destroy.c | |
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
Diffstat (limited to 'ares_destroy.c')
-rw-r--r-- | ares_destroy.c | 3 |
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) { |