mirror of
https://github.com/curl/curl.git
synced 2026-08-01 06:18:04 +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;
|
stream = data->req.protop;
|
||||||
if(!stream) {
|
if(!stream) {
|
||||||
failf(data, "Internal NULL stream!\n");
|
failf(data, "Internal NULL stream!\n");
|
||||||
|
(void)Curl_close(newhandle);
|
||||||
rv = 1;
|
rv = 1;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue