aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memory.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-03-05 16:52:47 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-03-05 17:02:24 +0800
commit1adad44b7ce6574f505f4cf5df3c8e21c0747f93 (patch)
treef39cdee099a9c4b0df48ab98251d7d6d6c5b49e3 /src/nvim/memory.c
parent1cfe83c2a2d5d1d5dcc37bdcdb9dba4107e41de7 (diff)
downloadrneovim-1adad44b7ce6574f505f4cf5df3c8e21c0747f93.tar.gz
rneovim-1adad44b7ce6574f505f4cf5df3c8e21c0747f93.tar.bz2
rneovim-1adad44b7ce6574f505f4cf5df3c8e21c0747f93.zip
vim-patch:9.0.0749: alloc/free of buffer for each quickfix entry is inefficient
Problem: Alloc/free of buffer for each quickfix entry is inefficient. Solution: Use a shared grow array. (Yegappan Lakshmanan, closes vim/vim#11365) https://github.com/vim/vim/commit/975a665d4811649a51e2c6a97a6ce096290d87ae Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/nvim/memory.c')
-rw-r--r--src/nvim/memory.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c
index 4e799dfd08..ffeafbdf2c 100644
--- a/src/nvim/memory.c
+++ b/src/nvim/memory.c
@@ -755,11 +755,7 @@ void free_all_mem(void)
p_hi = 0;
init_history();
- qf_free_all(NULL);
- // Free all location lists
- FOR_ALL_TAB_WINDOWS(tab, win) {
- qf_free_all(win);
- }
+ free_quickfix();
// Close all script inputs.
close_all_scripts();