fix(xRPC): release ctx.var when ctx is done (#7045)

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
This commit is contained in:
罗泽轩 2022-05-16 14:52:24 +08:00 committed by GitHub
parent 7131ee7de9
commit d95500948d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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