mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:43:32 +03:00
http2: fixed the header accessor functions for the push callback
This commit is contained in:
parent
feea9263e9
commit
f65ab8864e
5 changed files with 82 additions and 43 deletions
|
|
@ -176,6 +176,8 @@ static CURLcode http_disconnect(struct connectdata *conn, bool dead_connection)
|
|||
if(http) {
|
||||
Curl_add_buffer_free(http->header_recvbuf);
|
||||
http->header_recvbuf = NULL; /* clear the pointer */
|
||||
free(http->push_headers);
|
||||
http->push_headers = NULL;
|
||||
}
|
||||
#else
|
||||
(void)conn;
|
||||
|
|
@ -1492,6 +1494,8 @@ CURLcode Curl_http_done(struct connectdata *conn,
|
|||
DEBUGF(infof(data, "free header_recvbuf!!\n"));
|
||||
Curl_add_buffer_free(http->header_recvbuf);
|
||||
http->header_recvbuf = NULL; /* clear the pointer */
|
||||
free(http->push_headers);
|
||||
http->push_headers = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue