diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-08-08 18:11:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2024-08-08 18:11:16 +0800 |
commit | aaf16240f77bb75a3d8db89c2a99934c8b6022ee (patch) | |
tree | 0d55a387057c92b02a3b5f7b511105387ed236f4 | |
parent | e6a5b41f7424ad56a12efdf950efd2f20ad5f322 (diff) | |
download | lua-language-server-aaf16240f77bb75a3d8db89c2a99934c8b6022ee.zip |
fix memory leak with `---@enum(partical)`
-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 |