Skip to content

Commit

Permalink
patch 8.1.0833: memory leak when jumps output is filtered
Browse files Browse the repository at this point in the history
Problem:    Memory leak when jumps output is filtered.
Solution:   Free the filtered name. (Dominique Pelle, closes #3869)
  • Loading branch information
brammool committed Jan 27, 2019
1 parent 2e05009 commit d93090f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mark.c
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -783,6 +783,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
833,
/**/
832,
/**/
Expand Down

0 comments on commit d93090f

Please sign in to comment.