mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Free 'config->iface' if set.
This commit is contained in:
parent
587c99351d
commit
8da02df8e0
@ -3130,6 +3130,8 @@ static void free_config_fields(struct Configurable *config)
|
||||
free(config->cookiejar);
|
||||
if(config->ftp_account)
|
||||
free(config->ftp_account);
|
||||
if(config->iface)
|
||||
free(config->iface);
|
||||
|
||||
curl_slist_free_all(config->quote); /* checks for config->quote == NULL */
|
||||
curl_slist_free_all(config->prequote);
|
||||
@ -4321,6 +4323,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
int res;
|
||||
struct Configurable config;
|
||||
|
||||
memset(&config, 0, sizeof(struct Configurable));
|
||||
|
||||
config.errors = stderr; /* default errors to stderr */
|
||||
|
Loading…
Reference in New Issue
Block a user