]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1573: Memory leak when pressing Ctrl-D in cmdline mode v9.1.1573
authorzeertzjq <zeertzjq@outlook.com>
Sun, 20 Jul 2025 14:50:01 +0000 (16:50 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 20 Jul 2025 14:50:01 +0000 (16:50 +0200)
commitc02bef26fdfbffd442cbc5acef375256fa7fd6ff
tree53e77264c2bfed8ccf9b0d411b9e97971ce63153
parent9f4a80e2a7a28334c98f8cf8cfc1e6727dfdef3b
patch 9.1.1573: Memory leak when pressing Ctrl-D in cmdline mode

Problem:  Memory leak when pressing Ctrl-D in cmdline mode
          (after 9.1.1571).
Solution: Free prev_cmdbuff before assigning to it.
          (zeertzjq).

Existing tests already cover this. This change fixes the CI failure.

closes: #17807

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