aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-12-14 16:42:53 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-12-14 16:42:53 +0000
commit8da02df8e0ad7b6465037e3ca1ede1896e06d84e (patch)
treeb0b09543d0d5077acea9ee080d0b4f4933367e2c /src
parent587c99351d480cef96332dff31a39f662ebdccdb (diff)
Free 'config->iface' if set.
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 7e88b141c..259ee5cc4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 */