summaryrefslogtreecommitdiffstats
path: root/src/cmdexpand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r--src/cmdexpand.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index ca669c0798..9bcea7e8d6 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -2877,13 +2877,7 @@ ExpandGeneric(
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;
}