diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 21:37:57 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 21:38:29 +0800 |
commit | cb8bc9b33c84ad0447d5aed262970d718d406501 (patch) | |
tree | c0ef87c1258de04cfb204a3ec9655b4c8967c8ff /src | |
parent | 43681f237551dfebb64c44f60eb13459b82ea2ed (diff) | |
download | rneovim-cb8bc9b33c84ad0447d5aed262970d718d406501.tar.gz rneovim-cb8bc9b33c84ad0447d5aed262970d718d406501.tar.bz2 rneovim-cb8bc9b33c84ad0447d5aed262970d718d406501.zip |
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 (limited to 'src')
-rw-r--r-- | src/nvim/ex_docmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index ed74993b84..dc2b7247f1 100644 --- 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); |