Commit 1451271e authored by Larry Stefani's avatar Larry Stefani Committed by Daniel Stenberg
Browse files

http2: fix handle leak in error path

Add missing newhandle free call in push_promise().

Closes #1416
parent fc347820
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
    }