aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2015-08-23 20:57:17 +0200
committerDan Fandrich <dan@coneharvesters.com>2015-08-23 20:57:17 +0200
commit2acaf3c8046ae2c340f628d1af5ecc9be105f875 (patch)
tree01eb8e2c6a7fcdb19b4d72fb3410d151c1ecab56
parent9756d1da7637d1913b7ca2b589e4635f32ed3e00 (diff)
tool: fix memory leak with --proto-default option
-rw-r--r--src/tool_cfgable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_cfgable.c b/src/tool_cfgable.c
index 7ad86cad3..64f15ca27 100644
--- a/src/tool_cfgable.c
+++ b/src/tool_cfgable.c
@@ -118,6 +118,7 @@ static void free_config_fields(struct OperationConfig *config)
Curl_safefree(config->unix_socket_path);
Curl_safefree(config->writeout);
+ Curl_safefree(config->proto_default);
curl_slist_free_all(config->quote);
curl_slist_free_all(config->postquote);