mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.2844: Vim9: memory leak when using searchpair()
Problem: Vim9: memory leak when using searchpair(). Solution: Free the v_instr field.
This commit is contained in:
parent
f06ab6ba38
commit
24f720998f
@ -151,10 +151,13 @@ clear_tv(typval_T *varp)
|
||||
channel_unref(varp->vval.v_channel);
|
||||
varp->vval.v_channel = NULL;
|
||||
#endif
|
||||
break;
|
||||
case VAR_INSTR:
|
||||
VIM_CLEAR(varp->vval.v_instr);
|
||||
break;
|
||||
case VAR_UNKNOWN:
|
||||
case VAR_ANY:
|
||||
case VAR_VOID:
|
||||
case VAR_INSTR:
|
||||
break;
|
||||
}
|
||||
varp->v_lock = 0;
|
||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2844,
|
||||
/**/
|
||||
2843,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user