0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

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)
This commit is contained in:
Bram Moolenaar 2019-01-27 15:07:39 +01:00
parent 2e05009218
commit d93090f41f
2 changed files with 5 additions and 0 deletions

View 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)

View File

@ -783,6 +783,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
833,
/**/
832,
/**/