patch 8.2.4732: duplicate code to free fuzzy matches
Problem: Duplicate code to free fuzzy matches.
Solution: Bring back fuzmatch_str_free().
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index ca669c0..9bcea7e 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -2877,13 +2877,7 @@
ga_clear_strings(&ga);
return FAIL;
}
-
- for (i = 0; i < ga.ga_len; ++i)
- {
- fuzmatch = &((fuzmatch_str_T *)ga.ga_data)[i];
- vim_free(fuzmatch->str);
- }
- ga_clear(&ga);
+ fuzmatch_str_free(ga.ga_data, ga.ga_len);
return FAIL;
}