From 93dde299798aca8a59cf4c8e4c5ada05000ead81 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 3 May 2004 09:17:49 +0000 Subject: don't free(NULL) --- ares/ares_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ares/ares_init.c b/ares/ares_init.c index 444fd8a66..41598e6ed 100644 --- a/ares/ares_init.c +++ b/ares/ares_init.c @@ -109,7 +109,8 @@ int ares_init_options(ares_channel *channelptr, struct ares_options *options, } if (channel->nsort != -1) free(channel->sortlist); - free(channel->lookups); + if(channel->lookups) + free(channel->lookups); free(channel); return status; } -- cgit v1.2.3