]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_cfgable: free login_options at exit
authorDaniel Stenberg <daniel@haxx.se>
Sun, 7 Jun 2020 22:05:12 +0000 (00:05 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Jun 2020 06:41:11 +0000 (08:41 +0200)
Memory leak
Reported-by: Geeknik Labs
Fixes #5535
Closes #5536

src/tool_cfgable.c

index 64cdd86d2a2684393bc18210e966590bf2598c39..63bdeaa4616ffd22a2c5009621bbeb9ed9e56be0 100644 (file)
@@ -112,6 +112,7 @@ static void free_config_fields(struct OperationConfig *config)
   Curl_safefree(config->cert_type);
   Curl_safefree(config->proxy_cert_type);
   Curl_safefree(config->cacert);
+  Curl_safefree(config->login_options);
   Curl_safefree(config->proxy_cacert);
   Curl_safefree(config->capath);
   Curl_safefree(config->proxy_capath);