You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/05/16 06:52:29 UTC
[apisix] branch master updated: fix(xRPC): release ctx.var when ctx is done (#7045)
This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new d95500948 fix(xRPC): release ctx.var when ctx is done (#7045)
d95500948 is described below
commit d95500948d0af71bb6a378b9634d57b984c6e78c
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Mon May 16 14:52:24 2022 +0800
fix(xRPC): release ctx.var when ctx is done (#7045)
Signed-off-by: spacewander <sp...@gmail.com>
---
apisix/stream/xrpc/runner.lua | 2 ++
1 file changed, 2 insertions(+)
diff --git a/apisix/stream/xrpc/runner.lua b/apisix/stream/xrpc/runner.lua
index 8c082a196..51dbd271e 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