]> granicus.if.org Git - vim/commitdiff
patch 8.1.0833: memory leak when jumps output is filtered v8.1.0833
authorBram Moolenaar <Bram@vim.org>
Sun, 27 Jan 2019 14:07:39 +0000 (15:07 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 27 Jan 2019 14:07:39 +0000 (15:07 +0100)
Problem:    Memory leak when jumps output is filtered.
Solution:   Free the filtered name. (Dominique Pelle, closes #3869)

src/mark.c
src/version.c

index 276391743c57819dbe13424aef904f03afca0e47..6a7ab00d8bf8eb5764984e9ed9bc458c80af194d 100644 (file)
@@ -900,7 +900,10 @@ ex_jumps(exarg_T *eap UNUSED)
 
            // apply :filter /pat/ or file name not available
            if (name == NULL || message_filtered(name))
+           {
+               vim_free(name);
                continue;
+           }
 
            msg_putchar('\n');
            if (got_int)
index fc8fe1b29dd45c6ca7aa3e1f3a0f223c49664455..9572886632a0892dd94a5f0db7fcb346b6f531f9 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    833,
 /**/
     832,
 /**/