]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0992: Vim9: double-free after v9.1.0988 v9.1.0992
authorYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 6 Jan 2025 17:34:49 +0000 (18:34 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 6 Jan 2025 17:34:49 +0000 (18:34 +0100)
commit2050dcc20f99b3440199f4fbe60581e2ad8dac97
tree410e655fae6151623bfb3c03bb42aa1804858de2
parent6655bef33047b826e0ccb8c686f3f57e47161b1c
patch 9.1.0992: Vim9: double-free after v9.1.0988

Problem:  Vim9: double-free after v9.1.0988
          (h-east)
Solution: clear typval pointer, before setting the type
          (Yegappan Lakshmanan)

Otherwise the contents are still referring to some other value.

fixes: #16386
closes: #16388

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_vim9_class.vim
src/version.c
src/vim9execute.c