Fix leak on failure

This commit is contained in:
Tatsuhiro Tsujikawa 2013-10-16 00:12:33 +09:00
parent ed43635c7b
commit a2735ed025
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}