From c4c9e070f35c113b8b9c4d79ca1b9c1afe87d0e4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 5 Sep 2019 00:08:21 +0200 Subject: Curl_fillreadbuffer: avoid double-free trailer buf on error Reviewed-by: Jay Satiro Reported-by: Thomas Vegas Closes #4307 --- lib/http.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/http.h') diff --git a/lib/http.h b/lib/http.h index 5bacb1754..f0ddec759 100644 --- a/lib/http.h +++ b/lib/http.h @@ -75,7 +75,7 @@ CURLcode Curl_add_custom_headers(struct connectdata *conn, bool is_connect, Curl_send_buffer *req_buffer); CURLcode Curl_http_compile_trailers(struct curl_slist *trailers, - Curl_send_buffer *buffer, + Curl_send_buffer **buffer, struct Curl_easy *handle); /* protocol-specific functions set up to be called by the main engine */ -- cgit v1.2.3