Skip to content

Commit

Permalink
Merge pull request #221 from lwthiker/fix-memleak-in-tool-getparam
Browse files Browse the repository at this point in the history
Fix memory leak due curl-impersonate custom args
  • Loading branch information
lwthiker authored Feb 27, 2024
2 parents 3e7c3ef + e82bd96 commit 45a364b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions chrome/patches/curl-impersonate.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2543,6 +2543,21 @@ index f24cb6924..30b4fdb0a 100644
endif

# 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
index 9a15659bc..7bf73bd3b 100644
--- a/src/tool_cfgable.h
Expand Down

0 comments on commit 45a364b

Please sign in to comment.