diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-27 15:07:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-27 15:07:39 +0100 |
commit | d93090f41f70c521cfad5b25efcb0024b9480082 (patch) | |
tree | e6876bcfc4eca145e03ef6c8a49fa5c69cf6faeb | |
parent | 2e0500921891e4fec57e97d3c0021aa2d2b4d7ae (diff) | |
download | vim-git-d93090f41f70c521cfad5b25efcb0024b9480082.tar.gz |
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)
-rw-r--r-- | src/mark.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
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 @@ -784,6 +784,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 833, +/**/ 832, /**/ 831, |