aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-03-22 19:45:20 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-03-22 19:45:20 +0000
commit72175c738f8abd36140a42bbc21c0a82c6c740d2 (patch)
treecee259d07b7c346eec08fcbab63c057a2ca9a546 /src
parent2288094b26d489913a0adc7bf93fc015ac0c2a8e (diff)
Free some additional strings on exit to avoid memory leaks.
Diffstat (limited to 'src')
-rw-r--r--src/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index ae7455037..32bc8a03c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3229,8 +3229,12 @@ static void free_config_fields(struct Configurable *config)
free(config->writeout);
if(config->httppost)
curl_formfree(config->httppost);
+ if (config->cert)
+ free(config->cert);
if(config->cacert)
free(config->cacert);
+ if (config->cert_type)
+ free(config->cert_type);
if(config->capath)
free(config->capath);
if(config->cookiejar)
@@ -3245,6 +3249,14 @@ static void free_config_fields(struct Configurable *config)
free(config->socksproxy);
if(config->libcurl)
free(config->libcurl);
+ if (config->key_passwd)
+ free(config->key_passwd);
+ if (config->key)
+ free(config->key);
+ if (config->key_type)
+ free(config->key_type);
+ if (config->referer)
+ free(config->referer);
curl_slist_free_all(config->quote); /* checks for config->quote == NULL */
curl_slist_free_all(config->prequote);