Skip to content

Commit

Permalink
make copied_recorder local to deepcopy function
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup committed Dec 24, 2024
1 parent 1097bee commit 6a000a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apisix/core/table.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,12 @@ do
end


local copied_recorder = {}

function deepcopy(orig)
local copied_recorder = {}
local orig_type = type(orig)
if orig_type ~= 'table' then
return orig
end

local res = _deepcopy(orig, copied_recorder)
_M.clear(copied_recorder)
return res
Expand Down

0 comments on commit 6a000a8

Please sign in to comment.