Skip to content

Commit aaf1624

Browse files
committed
fix memory leak with ---@enum(partical)
1 parent e6a5b41 commit aaf1624

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
55

6+
## 3.10.3
7+
`2024-8-8`
8+
* `FIX` Memory leak with `---@enum(partical)`
9+
610
## 3.10.2
711
`2024-8-7`
812
* `NEW` Add support for binary metamethod on right operand [#2777](https://github.com/LuaLS/lua-language-server/pull/2777)

script/vm/type.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ local function checkParentEnum(parentName, child, uri, mark, errs)
7070
if enums then
7171
enums = util.arrayMerge(enums, denums)
7272
else
73-
enums = denums
73+
enums = util.arrayMerge({}, denums)
7474
end
7575
end
7676
end

0 commit comments

Comments
 (0)