mirror of
https://github.com/curl/curl.git
synced 2026-04-15 04:51:40 +03:00
http2: fix handle leak in error path
Add missing newhandle free call in push_promise(). Closes #1416
This commit is contained in:
parent
fc347820a2
commit
1451271e08
1 changed files with 1 additions and 0 deletions
|
|
@ -408,6 +408,7 @@ static int push_promise(struct Curl_easy *data,
|
|||
stream = data->req.protop;
|
||||
if(!stream) {
|
||||
failf(data, "Internal NULL stream!\n");
|
||||
(void)Curl_close(newhandle);
|
||||
rv = 1;
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue