Skip to content

Commit 7abe1d8

Browse files
committed
fixup: another segfault
1 parent f602aab commit 7abe1d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node_http2.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,8 @@ void Http2Stream::Destroy() {
17871787
// We can destroy the stream now if there are no writes for it
17881788
// already on the socket. Otherwise, we'll wait for the garbage collector
17891789
// to take care of cleaning up.
1790-
if (!stream->session()->HasWritesOnSocketForStream(stream))
1790+
if (stream->session() == nullptr ||
1791+
!stream->session()->HasWritesOnSocketForStream(stream))
17911792
delete stream;
17921793
}, this, this->object());
17931794

0 commit comments

Comments
 (0)