summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-04-23 17:19:43 +0200
committerBram Moolenaar <Bram@vim.org>2017-04-23 17:19:43 +0200
commitd788f6fe89c77262c474de323f5dab6d1c814e27 (patch)
tree2acbd83b834ab9ce65cef79dd26f8e29b3070e5a
parentb11c826ddc459813f9f991cdb8e8736b686a6328 (diff)
patch 8.0.0584: memory leak when executing quickfix testsv8.0.0584
Problem: Memory leak when executing quickfix tests. Solution: Free the list reference. (Yegappan Lakshmanan)
-rw-r--r--src/quickfix.c3
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index ea7f5809a9..e65e43141b 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -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)
{
diff --git a/src/version.c b/src/version.c
index fd84c76740..1a6881f080 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 584,
+/**/
583,
/**/
582,