1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-08 12:28:06 -05:00

Free 'config->iface' if set.

This commit is contained in:
Gisle Vanem 2006-12-14 16:42:53 +00:00
parent 587c99351d
commit 8da02df8e0

View File

@ -3130,6 +3130,8 @@ static void free_config_fields(struct Configurable *config)
free(config->cookiejar); free(config->cookiejar);
if(config->ftp_account) if(config->ftp_account)
free(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->quote); /* checks for config->quote == NULL */
curl_slist_free_all(config->prequote); curl_slist_free_all(config->prequote);
@ -4321,6 +4323,7 @@ int main(int argc, char *argv[])
{ {
int res; int res;
struct Configurable config; struct Configurable config;
memset(&config, 0, sizeof(struct Configurable)); memset(&config, 0, sizeof(struct Configurable));
config.errors = stderr; /* default errors to stderr */ config.errors = stderr; /* default errors to stderr */