mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-08 04:42:26 +00:00
Fix memory leak due curl-impersonate custom args
This commit is contained in:
@@ -2543,6 +2543,21 @@ index f24cb6924..30b4fdb0a 100644
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# if unit tests are enabled, build a static library to link them with
|
# if unit tests are enabled, build a static library to link them with
|
||||||
|
diff --git a/src/tool_cfgable.c b/src/tool_cfgable.c
|
||||||
|
index ec5698ba2..7ca57f0d4 100644
|
||||||
|
--- a/src/tool_cfgable.c
|
||||||
|
+++ b/src/tool_cfgable.c
|
||||||
|
@@ -172,6 +172,10 @@ static void free_config_fields(struct OperationConfig *config)
|
||||||
|
Curl_safefree(config->aws_sigv4);
|
||||||
|
Curl_safefree(config->proto_str);
|
||||||
|
Curl_safefree(config->proto_redir_str);
|
||||||
|
+
|
||||||
|
+ Curl_safefree(config->ssl_sig_hash_algs);
|
||||||
|
+ Curl_safefree(config->ssl_cert_compression);
|
||||||
|
+ Curl_safefree(config->http2_pseudo_headers_order);
|
||||||
|
}
|
||||||
|
|
||||||
|
void config_free(struct OperationConfig *config)
|
||||||
diff --git a/src/tool_cfgable.h b/src/tool_cfgable.h
|
diff --git a/src/tool_cfgable.h b/src/tool_cfgable.h
|
||||||
index 9a15659bc..7bf73bd3b 100644
|
index 9a15659bc..7bf73bd3b 100644
|
||||||
--- a/src/tool_cfgable.h
|
--- a/src/tool_cfgable.h
|
||||||
|
Reference in New Issue
Block a user