1
0
forked from aniani/vim

patch 8.0.0584: memory leak when executing quickfix tests

Problem:    Memory leak when executing quickfix tests.
Solution:   Free the list reference. (Yegappan Lakshmanan)
This commit is contained in:
Bram Moolenaar 2017-04-23 17:19:43 +02:00
parent b11c826ddc
commit d788f6fe89
2 changed files with 5 additions and 0 deletions

View File

@ -4934,6 +4934,9 @@ qf_free_stack(win_T *wp, qf_info_T *qi)
* location list */
qf_info_T *new_ll = ll_new_list();
/* first free the list reference in the location list window */
ll_free_all(&orig_wp->w_llist_ref);
orig_wp->w_llist_ref = new_ll;
if (llwin != NULL)
{

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
584,
/**/
583,
/**/