patch 9.1.1331: Leaking memory with cmdcomplete()
Problem: Leaking memory with cmdcomplete()
(zeertzjq, after v9.1.1329)
Solution: free the memory (Girish Palya)
closes: #17190
Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
fa3b1043c6
commit
5c3d1e3258
@ -1916,8 +1916,7 @@ getcmdline_int(
|
||||
}
|
||||
|
||||
// Trigger CmdlineLeavePre autocommand
|
||||
if (ccline.cmdfirstc != NUL && (c == '\n' || c == '\r' || c == K_KENTER
|
||||
|| c == ESC || c == Ctrl_C))
|
||||
if (c == '\n' || c == '\r' || c == K_KENTER || c == ESC || c == Ctrl_C)
|
||||
trigger_cmd_autocmd(cmdline_type, EVENT_CMDLINELEAVEPRE);
|
||||
|
||||
// The wildmenu is cleared if the pressed key is not used for
|
||||
|
||||
Reference in New Issue
Block a user