diff options
author | James McCoy <jamessan@jamessan.com> | 2017-12-18 21:35:40 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-12-18 21:36:44 -0500 |
commit | 1b2d386a852fcdf1f7509dc29f2a26ab8e5b59ca (patch) | |
tree | 66390763d128b70693908f0a31acfa9aad38e710 | |
parent | 88863bb6ae5ce6409341a2cf4155d69210c319a4 (diff) | |
download | rneovim-1b2d386a852fcdf1f7509dc29f2a26ab8e5b59ca.tar.gz rneovim-1b2d386a852fcdf1f7509dc29f2a26ab8e5b59ca.tar.bz2 rneovim-1b2d386a852fcdf1f7509dc29f2a26ab8e5b59ca.zip |
vim-patch:8.0.0565: using freed memory in :caddbuf
Problem: Using freed memory in :caddbuf after clearing quickfix list.
(Dominique Pelle)
Solution: Set qf_last to NULL.
https://github.com/vim/vim/commit/31bdd13c335533c749993b57dcd980a87373139e
-rw-r--r-- | src/nvim/quickfix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 73ad14ab22..be998077c0 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -2411,6 +2411,7 @@ static void qf_free(qf_info_T *qi, int idx) qi->qf_lists[idx].qf_ptr = NULL; qi->qf_lists[idx].qf_title = NULL; qi->qf_lists[idx].qf_index = 0; + qi->qf_lists[idx].qf_last = NULL; qf_clean_dir_stack(&qi->qf_dir_stack); qi->qf_directory = NULL; |