diff options
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) { |