mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05: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
@ -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…
Reference in New Issue
Block a user