# HG changeset patch # User Christian Brabandt # Date 1492263003 -7200 # Node ID 83303ad9f1ff0619529732a3141a86305fafdac3 # Parent 0fc4e555506d1501996c42c4348d9f1ad76dbd7b patch 8.0.0565: using freed memory in :caddbuf commit https://github.com/vim/vim/commit/31bdd13c335533c749993b57dcd980a87373139e Author: Bram Moolenaar Date: Sat Apr 15 15:22:52 2017 +0200 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. diff --git a/src/quickfix.c b/src/quickfix.c --- a/src/quickfix.c +++ b/src/quickfix.c @@ -2750,6 +2750,7 @@ qf_free(qf_info_T *qi, int idx) vim_free(qi->qf_lists[idx].qf_title); 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 565, +/**/ 564, /**/ 563,