diff options
author | Craig Tiller <ctiller@google.com> | 2015-04-24 16:53:20 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-04-24 16:53:20 -0700 |
commit | 65f9f81afbb4d78496f3032246e97970720191cd (patch) | |
tree | 367cdb3a03c3bb814c4280de50698a549dff9b3e /src/core/transport/chttp2_transport.c | |
parent | 9c71b6f5b670098667cd6cba93ad96018b975e44 (diff) |
Fix memory leak
Diffstat (limited to 'src/core/transport/chttp2_transport.c')
-rw-r--r-- | src/core/transport/chttp2_transport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/transport/chttp2_transport.c b/src/core/transport/chttp2_transport.c index 238bcacfaa..545d9ef78e 100644 --- a/src/core/transport/chttp2_transport.c +++ b/src/core/transport/chttp2_transport.c @@ -957,7 +957,7 @@ static void finish_write_common(transport *t, int success) { } while ((s = stream_list_remove_head(t, WRITTEN_CLOSED))) { s->write_state = WRITE_STATE_SENT_CLOSE; - if (!s->cancelled) { + if (1||!s->cancelled) { maybe_finish_read(t, s); } } @@ -1916,6 +1916,7 @@ static void finish_reads(transport *t) { GPR_ASSERT(s->incoming_sopb); *s->publish_state = compute_state(s->write_state == WRITE_STATE_SENT_CLOSE, s->read_closed); + gpr_log(GPR_DEBUG, "FR: %p pub=%d known=%d ws=%d rc=%d", s, *s->publish_state, s->published_state, s->write_state, s->read_closed); if (*s->publish_state != s->published_state) { s->published_state = *s->publish_state; publish = 1; |