Skip to content

Commit

Permalink
Fix memleak and reset option (#1)
Browse files Browse the repository at this point in the history
* Fix memleak and reset option

Mainly backported from lwthiker/curl-impersonate#221

* Update tool_cfgable.c
  • Loading branch information
jjsaunier authored Feb 28, 2024
1 parent 1c725f7 commit 32c2ed8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tool_cfgable.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ static void free_config_fields(struct OperationConfig *config)
Curl_safefree(config->proto_str);
Curl_safefree(config->proto_redir_str);

// Impersonate
Curl_safefree(config->ssl_sig_hash_algs);
Curl_safefree(config->ssl_cert_compression);
Curl_safefree(config->http2_pseudo_headers_order);
Curl_safefree(config->http2_settings);
Curl_safefree(config->http2_streams);
// End Impersonate

urlnode = config->url_list;
while(urlnode) {
struct getout *next = urlnode->next;
Expand Down

0 comments on commit 32c2ed8

Please sign in to comment.