Fix crash with custom memory allocator

This commit is contained in:
Tatsuhiro Tsujikawa 2014-12-08 21:22:20 +09:00
parent c0ffed7788
commit e0a2353c56
1 changed files with 1 additions and 0 deletions

View File

@ -310,6 +310,7 @@ static int session_new(nghttp2_session **session_ptr,
} }
(*session_ptr)->mem = *mem; (*session_ptr)->mem = *mem;
mem = &(*session_ptr)->mem;
/* next_stream_id is initialized in either /* next_stream_id is initialized in either
nghttp2_session_client_new2 or nghttp2_session_server_new2 */ nghttp2_session_client_new2 or nghttp2_session_server_new2 */