Skip to content

Commit d788f6f

Browse files
committed
patch 8.0.0584: memory leak when executing quickfix tests
Problem: Memory leak when executing quickfix tests. Solution: Free the list reference. (Yegappan Lakshmanan)
1 parent b11c826 commit d788f6f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/quickfix.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4934,6 +4934,9 @@ qf_free_stack(win_T *wp, qf_info_T *qi)
49344934
* location list */
49354935
qf_info_T *new_ll = ll_new_list();
49364936

4937+
/* first free the list reference in the location list window */
4938+
ll_free_all(&orig_wp->w_llist_ref);
4939+
49374940
orig_wp->w_llist_ref = new_ll;
49384941
if (llwin != NULL)
49394942
{

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+
584,
767769
/**/
768770
583,
769771
/**/

0 commit comments

Comments
 (0)