diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-08-11 10:35:51 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-11 10:35:51 +0800 |
| commit | 2757f6eef92a99812d5ad12408d03592bd54f10c (patch) | |
| tree | 50e176bc391bc5929e2b32d31468349101dcf757 /runtime/plugin/python_setup.vim | |
| parent | 7be8a8dda38542ebe8272b86f99e8633275b01cd (diff) | |
| download | rneovim-2757f6eef92a99812d5ad12408d03592bd54f10c.tar.gz rneovim-2757f6eef92a99812d5ad12408d03592bd54f10c.tar.bz2 rneovim-2757f6eef92a99812d5ad12408d03592bd54f10c.zip | |
vim-patch:9.2.0933: u_read_undo() leaks the file name when the undo file owner differs (#41269)
Problem: When the owner of an undo file differs from the owner of
the text file and the current user, u_read_undo() returns
without freeing the file name it allocated with
u_get_undo_file_name().
Solution: Free the file name before returning (Samuel Schlesinger).
Every other exit of the function frees it under the "theend" label;
this early return sits before the file pointer is initialized, so it
cannot use that label.
closes: vim/vim#20987
https://github.com/vim/vim/commit/d03735e8d29a228e6a37300335983101edb69431
Co-authored-by: Samuel Schlesinger <sgschlesinger@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Diffstat (limited to 'runtime/plugin/python_setup.vim')
0 files changed, 0 insertions, 0 deletions