Commit a2735ed0 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fix leak on failure

parent ed43635c
......@@ -1008,6 +1008,7 @@ ssize_t nghttp2_hd_inflate_hd(nghttp2_hd_context *inflater,
in = decode_length(&valuelen, in, last, 0);
if(valuelen < 0 || in + valuelen > last) {
free(nv.name);
rv = NGHTTP2_ERR_HEADER_COMP;
goto fail;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment