mirror of
https://github.com/neovim/neovim.git
synced 2026-07-03 16:23:14 +00:00
Problem: Memory leak when allocating match fails
Solution: Initialize m to NULL and centralize cleanup via goto fail to
avoid leaks on early returns (Damien Lejay)
closes: vim/vim#18204
37e7728294
Co-authored-by: Damien Lejay <damien@lejay.be>