summaryrefslogtreecommitdiff
path: root/src/tool_cfgable.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-09-18 01:58:18 +0200
committerYang Tse <yangsita@gmail.com>2011-09-18 01:59:25 +0200
commit260b0f4d0cdb7c0ce30b16ae9a4cb94de6b36537 (patch)
tree10bff167818af4946fddcbb8c73162ff1012c733 /src/tool_cfgable.c
parentf50d4647d0f4e34f74b48dfc05e60739e737b890 (diff)
downloadcurl-260b0f4d0cdb7c0ce30b16ae9a4cb94de6b36537.tar.gz
curl tool: create tool_myfunc.[ch] which later on will hold my_* functions
Additionally function my_useragent() now provides default User-Agent string
Diffstat (limited to 'src/tool_cfgable.c')
-rw-r--r--src/tool_cfgable.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tool_cfgable.c b/src/tool_cfgable.c
index c2cfac673..2ec57cc32 100644
--- a/src/tool_cfgable.c
+++ b/src/tool_cfgable.c
@@ -38,9 +38,7 @@ void free_config_fields(struct Configurable *config)
Curl_safefree(config->random_file);
Curl_safefree(config->egd_file);
-
- /* config->useragent not handled */
-
+ Curl_safefree(config->useragent);
Curl_safefree(config->cookie);
Curl_safefree(config->cookiejar);
Curl_safefree(config->cookiefile);
@@ -123,3 +121,4 @@ void free_config_fields(struct Configurable *config)
/* config->outs not handled */
}
+