diff options
| author | Volodymyr Chernetskyi <volodymyr_chernetskyi@goodyear.com> | 2026-09-04 18:37:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-04 12:37:25 -0400 |
| commit | 6386e29636484ea0cbf19611da078eb50fd85ee0 (patch) | |
| tree | fcc51d9b4bdfdf642f35dffb3c4dda8f088e0473 /runtime/lua/vim | |
| parent | b21f2094ba1daf87ebdc55494784cb78f91d88a0 (diff) | |
| download | rneovim-6386e29636484ea0cbf19611da078eb50fd85ee0.tar.gz rneovim-6386e29636484ea0cbf19611da078eb50fd85ee0.tar.bz2 rneovim-6386e29636484ea0cbf19611da078eb50fd85ee0.zip | |
fix(api): leaked error message in nvim_eval_statusline() #41690
Problem:
`find_window_by_handle()` returns NULL only after `VALIDATE_INT` has
already set `err`, so the `api_set_error()` that followed allocated a
second message over the first pointer and leaked it.
Solution:
Drop the redundant call and keep the helper's message, which is already
set and better worded.
AI-assisted
Diffstat (limited to 'runtime/lua/vim')
0 files changed, 0 insertions, 0 deletions