]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1734: Memory leak when allocating match fails v9.1.1734
authorDamien Lejay <damien@lejay.be>
Fri, 5 Sep 2025 15:29:31 +0000 (17:29 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 5 Sep 2025 15:29:31 +0000 (17:29 +0200)
commit37e77282949786bb178c8fb8d6717afcaa40688e
treece222e18275f7b8af1006b3d5bc19251d2fb5e9e
parent4daf031253de690de957a85b0a8d4565b0851ea7
patch 9.1.1734: Memory leak when allocating match fails

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: #18204

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/match.c
src/version.c