aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-10-01 13:22:02 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-10-01 13:22:02 -0400
commitafe8a32be01d006d6c25f69b4aa1b6e92464ab63 (patch)
tree8f5ce0ddfdc8e45132bd13559cac0a61cf5b98e8
parentbb5bf96839239f83e5db4b5f34d13acea0e9cbe7 (diff)
parent2fb77ba6f9f4e04cc0beec5ad42f476de3787b25 (diff)
downloadrneovim-afe8a32be01d006d6c25f69b4aa1b6e92464ab63.tar.gz
rneovim-afe8a32be01d006d6c25f69b4aa1b6e92464ab63.tar.bz2
rneovim-afe8a32be01d006d6c25f69b4aa1b6e92464ab63.zip
Merge pull request #3410 from oni-link/fix.spell_suggest
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