aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/async/_queue.lua
diff options
context:
space:
mode:
authorVolodymyr Chernetskyi <volodymyr_chernetskyi@goodyear.com>2026-09-04 18:39:08 +0200
committerGitHub <noreply@github.com>2026-09-04 12:39:08 -0400
commitba11f366953b04d9bcdca678438d21c62ba7b483 (patch)
treeb06b2742adf8860614faf42a39ce82c2175e1b78 /runtime/lua/vim/async/_queue.lua
parent6386e29636484ea0cbf19611da078eb50fd85ee0 (diff)
downloadrneovim-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