mirror of
https://github.com/curl/curl.git
synced 2026-06-17 06:05:38 +03:00
don't free(NULL)
This commit is contained in:
parent
d42dcd60cd
commit
93dde29979
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue