]> granicus.if.org Git - curl/commitdiff
don't free(NULL)
authorDaniel Stenberg <daniel@haxx.se>
Mon, 3 May 2004 09:17:49 +0000 (09:17 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 May 2004 09:17:49 +0000 (09:17 +0000)
ares/ares_init.c

index 444fd8a66aa9db3c4d862c311debe5e15c0c3fd1..41598e6ed5787a6e360cf7f81eaec7a91d8aad78 100644 (file)
@@ -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;
     }