neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit cb8bc9b33c84ad0447d5aed262970d718d406501
parent 43681f237551dfebb64c44f60eb13459b82ea2ed
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat,  5 Nov 2022 21:37:57 +0800

vim-patch:8.2.0883: memory leak in test 49

Problem:    Memory leak in test 49.
Solution:   Free "sfile" from the exception.

https://github.com/vim/vim/commit/5fbf3bc3f9d007ab91eb005f9e3da6570992cb43

Co-authored-by: Bram Moolenaar <Bram@vim.org>

Diffstat:
Msrc/nvim/ex_docmd.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c @@ -807,6 +807,7 @@ int do_cmdline(char *cmdline, LineGetter fgetline, void *cookie, int flags) next = messages->next; emsg(messages->msg); xfree(messages->msg); + xfree(messages->sfile); xfree(messages); messages = next; } while (messages != NULL);