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:
@@ -4934,6 +4934,9 @@ qf_free_stack(win_T *wp, qf_info_T *qi)
|
|||||||
* location list */
|
* location list */
|
||||||
qf_info_T *new_ll = ll_new_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;
|
orig_wp->w_llist_ref = new_ll;
|
||||||
if (llwin != NULL)
|
if (llwin != NULL)
|
||||||
{
|
{
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
584,
|
||||||
/**/
|
/**/
|
||||||
583,
|
583,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user