From: Larry Stefani Date: Thu, 13 Apr 2017 14:06:14 +0000 (-0400) Subject: http2: fix handle leak in error path X-Git-Tag: curl-7_54_0~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1451271e08d838c547f52ea6a3805a662e3d18f6;p=curl http2: fix handle leak in error path Add missing newhandle free call in push_promise(). Closes #1416 --- diff --git a/lib/http2.c b/lib/http2.c index 270be071d..264c66700 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -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; }