nghttp2_hd: Fix memory leak and bad free