From 554afb281edad3da62929c0d8dce39f05ed18e6c Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Tue, 29 Jul 2025 05:55:37 -0400 Subject: [PATCH] http: h2 free stream scheduler heads with conn Type: fix Change-Id: I1cddb7547d08a0668f6e536d77094911d9b26a6e Signed-off-by: Matus Fabian --- src/plugins/http/http2/http2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/http/http2/http2.c b/src/plugins/http/http2/http2.c index d92d52a047c..4b73fca5913 100644 --- a/src/plugins/http/http2/http2.c +++ b/src/plugins/http/http2/http2.c @@ -198,6 +198,8 @@ http2_conn_ctx_free (http_conn_t *hc) h2c = http2_conn_ctx_get_w_thread (hc); HTTP_DBG (1, "h2c [%u]%x", hc->c_thread_index, h2c - wrk->conn_pool); ASSERT (h2c->req_num == 0); + pool_put_index (wrk->req_pool, h2c->new_tx_streams); + pool_put_index (wrk->req_pool, h2c->old_tx_streams); hash_free (h2c->req_by_stream_id); if (hc->flags & HTTP_CONN_F_HAS_REQUEST) hpack_dynamic_table_free (&h2c->decoder_dynamic_table); -- 2.16.6