summaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2022-10-14 13:11:13 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-14 13:11:13 +0100
commit975a665d4811649a51e2c6a97a6ce096290d87ae (patch)
treeaa34659fe233d4c0f5080d7ecf3b3bb19eb44193 /src/alloc.c
parentb9c09c118e951bc6ea2059941101939dc572b4ce (diff)
patch 9.0.0749: alloc/free of buffer for each quickfix entry is inefficientv9.0.0749
Problem: Alloc/free of buffer for each quickfix entry is inefficient. Solution: Use a shared grow array. (Yegappan Lakshmanan, closes #11365)
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 1032462805..583ea87743 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -472,15 +472,7 @@ free_all_mem(void)
# endif
# ifdef FEAT_QUICKFIX
- {
- win_T *win;
- tabpage_T *tab;
-
- qf_free_all(NULL);
- // Free all location lists
- FOR_ALL_TAB_WINDOWS(tab, win)
- qf_free_all(win);
- }
+ free_quickfix();
# endif
// Close all script inputs.