summaryrefslogtreecommitdiffstats
path: root/src/mark.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-27 15:07:39 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-27 15:07:39 +0100
commitd93090f41f70c521cfad5b25efcb0024b9480082 (patch)
treee6876bcfc4eca145e03ef6c8a49fa5c69cf6faeb /src/mark.c
parent2e0500921891e4fec57e97d3c0021aa2d2b4d7ae (diff)
patch 8.1.0833: memory leak when jumps output is filteredv8.1.0833
Problem: Memory leak when jumps output is filtered. Solution: Free the filtered name. (Dominique Pelle, closes #3869)
Diffstat (limited to 'src/mark.c')
-rw-r--r--src/mark.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mark.c b/src/mark.c
index 276391743c..6a7ab00d8b 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -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)