diff options
-rw-r--r-- | changelog.md | 4 | ||||
-rw-r--r-- | script/vm/type.lua | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index 82129557..096b644a 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,10 @@ ## Unreleased <!-- Add all new changes here. They will be moved under a version at release --> +## 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 d2a859d0..d3ce7a92 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 |