Skip to content

Commit 31bdd13

Browse files
committed
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.
1 parent 39170e2 commit 31bdd13

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/quickfix.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,6 +2750,7 @@ qf_free(qf_info_T *qi, int idx)
27502750
vim_free(qi->qf_lists[idx].qf_title);
27512751
qi->qf_lists[idx].qf_title = NULL;
27522752
qi->qf_lists[idx].qf_index = 0;
2753+
qi->qf_lists[idx].qf_last = NULL;
27532754

27542755
qf_clean_dir_stack(&qi->qf_dir_stack);
27552756
qi->qf_directory = NULL;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
565,
767769
/**/
768770
564,
769771
/**/

0 commit comments

Comments
 (0)