diff --git a/apisix/stream/xrpc/runner.lua b/apisix/stream/xrpc/runner.lua index 8c082a19..51dbd271 100644 --- a/apisix/stream/xrpc/runner.lua +++ b/apisix/stream/xrpc/runner.lua @@ -50,6 +50,8 @@ local function put_req_ctx(session, ctx) local id = ctx._id session._ctxs[id] = nil + core.ctx.release_vars(ctx) + core.tablepool.release("xrpc_ctxs", ctx) end