Skip to content

Commit ba1e32f

Browse files
committed
updated for version 7.4.379
Problem: Accessing freed memory after using setqflist(list, 'r'). (Lcd) Solution: Reset qf_index.
1 parent ca255fe commit ba1e32f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/quickfix.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,6 +2173,7 @@ qf_free(qi, idx)
21732173
}
21742174
vim_free(qi->qf_lists[idx].qf_title);
21752175
qi->qf_lists[idx].qf_title = NULL;
2176+
qi->qf_lists[idx].qf_index = 0;
21762177
}
21772178

21782179
/*

src/version.c

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

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
379,
737739
/**/
738740
378,
739741
/**/

0 commit comments

Comments
 (0)