mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -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:
parent
2e05009218
commit
d93090f41f
@ -900,7 +900,10 @@ ex_jumps(exarg_T *eap UNUSED)
|
|||||||
|
|
||||||
// apply :filter /pat/ or file name not available
|
// apply :filter /pat/ or file name not available
|
||||||
if (name == NULL || message_filtered(name))
|
if (name == NULL || message_filtered(name))
|
||||||
|
{
|
||||||
|
vim_free(name);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
msg_putchar('\n');
|
msg_putchar('\n');
|
||||||
if (got_int)
|
if (got_int)
|
||||||
|
@ -783,6 +783,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
833,
|
||||||
/**/
|
/**/
|
||||||
832,
|
832,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user