summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/provider/python.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-08-14 06:45:30 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-08-14 06:48:31 +0800
commit2619a749a5329fd24d10286ecd16f59791436fb0 (patch)
treeeb2ad2fea52bc7ea6910f5680ca4651e84d99de3 /runtime/lua/vim/provider/python.lua
parent6f0ef8a5f2efc996dc8f79c0bf0ed36dac7e1ac7 (diff)
vim-patch:9.1.1628: fuzzy.c has a few issues
Problem: fuzzy.c has a few issues Solution: Use Vims memory management, update style (glepnir) Problem: - Missing cleanup of lmatchpos lists causing memory leaks - Missing error handling for list operations - Use of malloc() instead of Vim's alloc() functions - Inconsistent C-style comments - Missing null pointer checks for memory allocation - Incorrect use of vim_free() for list objects Solution: - Add proper cleanup of lmatchpos in done section using list_free() - Set lmatchpos to NULL after successful transfer to avoid confusion - Add error handling for list_append_tv() failures - Replace malloc() with alloc() and add null pointer checks - Convert C-style comments to C++ style for consistency - Fix vim_free() calls to use list_free() for list objects closes: vim/vim#17984 https://github.com/vim/vim/commit/17a6d696bd2f9526f2c4beae95208626d0e8d922 Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions