Fix another heap-use-after-free bug

This commit is contained in:
Tatsuhiro Tsujikawa 2014-08-10 12:20:36 +09:00
parent 894783f572
commit d499803221
1 changed files with 7 additions and 0 deletions

View File

@ -1798,6 +1798,13 @@ static int session_prep_frame(nghttp2_session *session,
return framerv;
}
if(framerv < 0) {
rv = nghttp2_stream_detach_data(stream, &session->ob_pq,
session->last_cycle);
if(nghttp2_is_fatal(rv)) {
return rv;
}
return framerv;
}
return 0;