mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -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:
@@ -151,10 +151,13 @@ clear_tv(typval_T *varp)
|
|||||||
channel_unref(varp->vval.v_channel);
|
channel_unref(varp->vval.v_channel);
|
||||||
varp->vval.v_channel = NULL;
|
varp->vval.v_channel = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
break;
|
||||||
|
case VAR_INSTR:
|
||||||
|
VIM_CLEAR(varp->vval.v_instr);
|
||||||
|
break;
|
||||||
case VAR_UNKNOWN:
|
case VAR_UNKNOWN:
|
||||||
case VAR_ANY:
|
case VAR_ANY:
|
||||||
case VAR_VOID:
|
case VAR_VOID:
|
||||||
case VAR_INSTR:
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
varp->v_lock = 0;
|
varp->v_lock = 0;
|
||||||
|
@@ -750,6 +750,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 */
|
||||||
|
/**/
|
||||||
|
2844,
|
||||||
/**/
|
/**/
|
||||||
2843,
|
2843,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user