# HG changeset patch # User Bram Moolenaar # Date 1406125987 -7200 # Node ID 16cfdf28be40ccbefaeb80ec574a098362a36a34 # Parent dfcacb6a34dcdad752c745968e8b5cb1d6820542 updated for version 7.4.379 Problem: Accessing freed memory after using setqflist(list, 'r'). (Lcd) Solution: Reset qf_index. diff --git a/src/quickfix.c b/src/quickfix.c --- a/src/quickfix.c +++ b/src/quickfix.c @@ -2173,6 +2173,7 @@ qf_free(qi, idx) } vim_free(qi->qf_lists[idx].qf_title); qi->qf_lists[idx].qf_title = NULL; + qi->qf_lists[idx].qf_index = 0; } /* diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 379, +/**/ 378, /**/ 377,