don't free(NULL)

pull/1/head
Daniel Stenberg 21 years ago
parent 727cd05fab
commit 5ab993a1e0
  1. 3
      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;
}

Loading…
Cancel
Save