]> granicus.if.org Git - curl/commitdiff
tool: fix memory leak with --proto-default option
authorDan Fandrich <dan@coneharvesters.com>
Sun, 23 Aug 2015 18:57:17 +0000 (20:57 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Sun, 23 Aug 2015 18:57:17 +0000 (20:57 +0200)
src/tool_cfgable.c

index 7ad86cad3f92b1d23c4631c5012c3e92f51edc65..64f15ca278ef88daa4846109e2a939a5e06106be 100644 (file)
@@ -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);