neovim

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

commit 07915941014307b054cbbb131369377647b7fb06
parent 7bf12db0c8009aed91b2ad645260d390ab109808
Author: Ethan Praeter <ethan@praeters.com>
Date:   Wed, 15 Oct 2025 17:43:31 -0400

fix(coverity/530033): free lp->sl_info to fix resource leak #36198


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

diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c @@ -681,6 +681,7 @@ slang_T *spell_load_file(char *fname, char *lang, slang_T *old_lp, bool silent) res = 0; switch (n) { case SN_INFO: + XFREE_CLEAR(lp->sl_info); lp->sl_info = read_string(fd, (size_t)len); // <infotext> if (lp->sl_info == NULL) { goto endFAIL;