mirror of
https://github.com/neovim/neovim.git
synced 2026-07-01 07:16:39 +00:00
Problem: regionpos may leak memory on error, coverity
complains about dereferencing Null pointer
Solution: free all list pointers (after v9.1.394),
return early if buflist_findnr() returns NULL
closes: vim/vim#14731
b8ecedce79
Co-authored-by: Christian Brabandt <cb@256bit.org>