fix(lua): memory leak when using invalid syntax with exists() (#26530)

This commit is contained in:
zeertzjq
2023-12-12 20:34:02 +08:00
committed by GitHub
parent 1d4a5cd185
commit b40170f7a3
3 changed files with 24 additions and 36 deletions

View File

@@ -639,9 +639,7 @@ t2]])
{1:│}t1 |
{1:│}^ |
{1:+}{2:+-- 2 lines: # h2·····················}|
{3:~ }|
{3:~ }|
{3:~ }|
{3:~ }|*3
{4:-- INSERT --} |
]]}
@@ -656,10 +654,7 @@ t2]])
{1:-}^t1 |
{1:-}# h2 |
{1:│}t2 |
{3:~ }|
{3:~ }|
{3:~ }|
{3:~ }|
{3:~ }|*4
1 line less; before #2 {MATCH:.*}|
]]}
end)