From 07915941014307b054cbbb131369377647b7fb06 Mon Sep 17 00:00:00 2001 From: Ethan Praeter Date: Wed, 15 Oct 2025 17:43:31 -0400 Subject: [PATCH] fix(coverity/530033): free lp->sl_info to fix resource leak #36198 --- src/nvim/spellfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c index 6229943dc5..bd63b3b3e2 100644 --- 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); // if (lp->sl_info == NULL) { goto endFAIL;