summaryrefslogtreecommitdiff
path: root/lib/http2.c
diff options
context:
space:
mode:
authorLarry Stefani <larry.stefani@sonos.com>2017-04-13 10:06:14 -0400
committerDaniel Stenberg <daniel@haxx.se>2017-04-15 23:37:30 +0200
commit1451271e08d838c547f52ea6a3805a662e3d18f6 (patch)
treeb5a647e018539a445f96abc7871912bbeefae58c /lib/http2.c
parentfc347820a27c5e5ed1ccfe1c81c4c4eb2a59f9fe (diff)
downloadcurl-1451271e08d838c547f52ea6a3805a662e3d18f6.tar.gz
http2: fix handle leak in error path
Add missing newhandle free call in push_promise(). Closes #1416
Diffstat (limited to 'lib/http2.c')
-rw-r--r--lib/http2.c1
1 files changed, 1 insertions, 0 deletions
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;
}