]> granicus.if.org Git - curl/commit
Curl_http2_done: fix memleak in error path
authorDaniel Stenberg <daniel@haxx.se>
Tue, 25 Sep 2018 09:48:43 +0000 (11:48 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Sep 2018 15:03:45 +0000 (17:03 +0200)
commit304bb2f7c1b463373aa31c1530144c67f6afddb2
tree40f4695836f14ace7d589df0ede10a695d0bd62b
parent4058cf2a7f7e2590c26588c4eb476ac5c029cb5a
Curl_http2_done: fix memleak in error path

Free 'header_recvbuf' unconditionally even if 'h2' isn't (yet) set, for
early failures.

Detected by OSS-Fuzz

Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10669
Closes #3046
lib/http2.c