1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 16:49:52 +00:00

don't free(NULL)

This commit is contained in:
Daniel Stenberg
2004-05-03 09:17:49 +00:00
parent 727cd05fab
commit 5ab993a1e0

View 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;
}