aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroni-link <knil.ino@gmail.com>2015-10-01 12:34:13 +0200
committeroni-link <knil.ino@gmail.com>2015-10-01 12:34:13 +0200
commit2fb77ba6f9f4e04cc0beec5ad42f476de3787b25 (patch)
treeee164b138bc89222a298bdc8f8399e4dc9ef5317
parent30024dcdbdbd9894784516608101224ca1f92a2c (diff)
downloadrneovim-2fb77ba6f9f4e04cc0beec5ad42f476de3787b25.tar.gz
rneovim-2fb77ba6f9f4e04cc0beec5ad42f476de3787b25.tar.bz2
rneovim-2fb77ba6f9f4e04cc0beec5ad42f476de3787b25.zip
spell.c: Fix memory leak
-rw-r--r--src/nvim/spell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index f9ed6faff9..88f64bdf73 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -8583,6 +8583,7 @@ void spell_suggest(int count)
curwin->w_cursor = prev_cursor;
spell_find_cleanup(&sug);
+ xfree(line);
}
// Check if the word at line "lnum" column "col" is required to start with a