]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1943: Memory leak with :breakadd expr v9.1.1943
authorzeertzjq <zeertzjq@outlook.com>
Mon, 1 Dec 2025 19:43:05 +0000 (19:43 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 1 Dec 2025 19:43:05 +0000 (19:43 +0000)
commita474de64dfd853eb5d3bf04f8bbd6f7d16e10c82
tree4599dc66571c41ef3e8c9ca6ee6f29f092f49664
parentcce452f52d6b52b1f1b630206ba3b54a12465152
patch 9.1.1943: Memory leak with :breakadd expr

Problem:  Memory leak with :breakadd expr
Solution: Free debug_oldval and debug_newval before assigning to them.
          Verify the existing (though confusing) :breakadd expr behavior
          (zeertzjq).

It seems that :breakadd expr doesn't work as documented at all. This PR
only fixes the memory leak. The tests are for the existing behavior.

closes: #18844

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/debugger.c
src/testdir/test_debugger.vim
src/version.c