diff options
| author | Volodymyr Chernetskyi <volodymyr_chernetskyi@goodyear.com> | 2026-09-04 18:39:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-04 12:39:08 -0400 |
| commit | ba11f366953b04d9bcdca678438d21c62ba7b483 (patch) | |
| tree | b06b2742adf8860614faf42a39ce82c2175e1b78 /runtime/lua/vim/async/_queue.lua | |
| parent | 6386e29636484ea0cbf19611da078eb50fd85ee0 (diff) | |
| download | rneovim-ba11f366953b04d9bcdca678438d21c62ba7b483.tar.gz rneovim-ba11f366953b04d9bcdca678438d21c62ba7b483.tar.bz2 rneovim-ba11f366953b04d9bcdca678438d21c62ba7b483.zip | |
fix(api): leaked window set in nvim__ns_set() #41689
Problem:
The early return for an invalid window handle bypasses the
`set_destroy()` at the end of the block, so the set's backing allocation
leaks whenever an earlier iteration already called `set_put()`.
Triggered by `{ wins = { valid_win, 9999 } }`.
Solution:
Destroy the set before returning.
The new test passes either way, since the leak is only visible to a
sanitizer; it is there so the ASAN job covers the path.
AI-assisted
Diffstat (limited to 'runtime/lua/vim/async/_queue.lua')
0 files changed, 0 insertions, 0 deletions