]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.0584: memory leak when executing quickfix tests v8.0.0584
authorBram Moolenaar <Bram@vim.org>
Sun, 23 Apr 2017 15:19:43 +0000 (17:19 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 23 Apr 2017 15:19:43 +0000 (17:19 +0200)
Problem:    Memory leak when executing quickfix tests.
Solution:   Free the list reference. (Yegappan Lakshmanan)

src/quickfix.c
src/version.c

index ea7f5809a9e099bc07031d5f77b9685b7845c587..e65e43141b6a81ba8508db915dfeb7a75f9b0765 100644 (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)
        {
index fd84c76740307a38490da28c2edbd0851d202290..1a6881f0803b3673b73c86108a9f48760de05510 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    584,
 /**/
     583,
 /**/