diff --git a/src/nvim/fuzzy.c b/src/nvim/fuzzy.c index 0cce8d7f50..cab1c3e0b4 100644 --- a/src/nvim/fuzzy.c +++ b/src/nvim/fuzzy.c @@ -700,7 +700,7 @@ void fuzmatch_str_free(fuzmatch_str_T *const fuzmatch, int count) return; } for (int i = 0; i < count; i++) { - xfree(fuzmatch[count].str); + xfree(fuzmatch[i].str); } xfree(fuzmatch); }