From: Bram Moolenaar Date: Sun, 27 Jan 2019 14:07:39 +0000 (+0100) Subject: patch 8.1.0833: memory leak when jumps output is filtered X-Git-Tag: v8.1.0833 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d93090f41f70c521cfad5b25efcb0024b9480082;p=vim patch 8.1.0833: memory leak when jumps output is filtered Problem: Memory leak when jumps output is filtered. Solution: Free the filtered name. (Dominique Pelle, closes #3869) --- diff --git a/src/mark.c b/src/mark.c index 276391743..6a7ab00d8 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) diff --git a/src/version.c b/src/version.c index fc8fe1b29..957288663 100644 --- a/src/version.c +++ b/src/version.c @@ -783,6 +783,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 833, /**/ 832, /**/