From: Daniel Stenberg Date: Mon, 3 May 2004 09:17:49 +0000 (+0000) Subject: don't free(NULL) X-Git-Tag: curl-7_12_0~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93dde299798aca8a59cf4c8e4c5ada05000ead81;p=thirdparty%2Fcurl.git don't free(NULL) --- diff --git a/ares/ares_init.c b/ares/ares_init.c index 444fd8a66a..41598e6ed5 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; }