]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0780: Memory leak in evalvars.c on alloc failure v9.2.0780
authorChristian Brabandt <cb@256bit.org>
Thu, 2 Jul 2026 20:06:33 +0000 (20:06 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 2 Jul 2026 20:06:33 +0000 (20:06 +0000)
commitf2156161c52548af2a502858b59f48ea2fb33bb2
treed359dde3f79fe9b6300f7b32953c73295908c03b
parenteeeed2b294da499e63e331f40302ffe9dbf96baa
patch 9.2.0780: Memory leak in evalvars.c on alloc failure

Problem:  Memory leak in evalvars.c on alloc failure (Ao Xijie)
Solution: free new_tuple when tuple_append_tv() fails and clear typeval,
          add a test.

closes: #20668

Supported by AI.

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/alloc.h
src/evalvars.c
src/testdir/test_tuple.vim
src/tuple.c
src/version.c