mirror of
https://github.com/vim/vim.git
synced 2025-10-24 08:54:47 -04:00
patch 9.1.1632: memory leak in fuzzy.c
Problem: memory leak in fuzzy.c
Solution: Free fuzmatch, add a few minor refactors
(glepnir)
fixes neovim CID 584055: fuzmatch leak when count becomes 0
Fix partial allocation failure cleanup in buffer expansion
closes: #17996
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
bb07b1ac14
commit
03d6e06edd
@@ -2971,7 +2971,11 @@ ExpandBufnames(
|
||||
else
|
||||
p = vim_strsave(p);
|
||||
if (p == NULL)
|
||||
{
|
||||
if (fuzzy && round == 2)
|
||||
fuzmatch_str_free(fuzmatch, count);
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
if (!fuzzy)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user