Skip to content

Commit

Permalink
fix(xRPC): release ctx.var when ctx is done (#7045)
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
  • Loading branch information
spacewander authored May 16, 2022
1 parent 7131ee7 commit d955009
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apisix/stream/xrpc/runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d955009

Please sign in to comment.