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.

31bdd13c33
This commit is contained in:
James McCoy 2017-12-18 21:35:40 -05:00
parent 88863bb6ae
commit 1b2d386a85
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -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;