diff --git a/lib/http2.c b/lib/http2.c index ad7ae1d1b8..d59571ed23 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -581,6 +581,7 @@ static int push_promise(struct Curl_easy *data, rv = set_transfer_url(newhandle, &heads); if(rv) { + (void)Curl_close(&newhandle); rv = CURL_PUSH_DENY; goto fail; }