diff --git a/changelog.md b/changelog.md index 82129557d..096b644ab 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,10 @@ ## Unreleased +## 3.10.3 +`2024-8-8` +* `FIX` Memory leak with `---@enum(partical)` + ## 3.10.2 `2024-8-7` * `NEW` Add support for binary metamethod on right operand [#2777](https://github.com/LuaLS/lua-language-server/pull/2777) diff --git a/script/vm/type.lua b/script/vm/type.lua index d2a859d0d..d3ce7a926 100644 --- a/script/vm/type.lua +++ b/script/vm/type.lua @@ -70,7 +70,7 @@ local function checkParentEnum(parentName, child, uri, mark, errs) if enums then enums = util.arrayMerge(enums, denums) else - enums = denums + enums = util.arrayMerge({}, denums) end end end