mirror of
https://github.com/curl/curl.git
synced 2026-07-08 23:47:15 +03:00
http2: cleanup pushed newhandle on fail
When nghttp2_session_set_stream_user_data() fails, clean up the new handle. Reported-by: Joshua Rogers Closes #18931
This commit is contained in:
parent
93e91e965e
commit
44a79d4f7a
1 changed files with 1 additions and 0 deletions
|
|
@ -1030,6 +1030,7 @@ static int push_promise(struct Curl_cfilter *cf,
|
|||
infof(data, "failed to set user_data for stream %u",
|
||||
newstream->id);
|
||||
DEBUGASSERT(0);
|
||||
discard_newhandle(cf, newhandle);
|
||||
rv = CURL_PUSH_DENY;
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue