mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 9.0.1941: Memory leak detected
Problem: Memory leak detected (after 9.0.1928) Solution: Free arg_objm in get_lambda_tv() closes: #13181 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
committed by
Christian Brabandt
parent
e1b95f5252
commit
3aa114463f
@@ -1721,7 +1721,10 @@ theend:
|
|||||||
eval_lavars_used = old_eval_lavars;
|
eval_lavars_used = old_eval_lavars;
|
||||||
vim_free(tofree2);
|
vim_free(tofree2);
|
||||||
if (types_optional)
|
if (types_optional)
|
||||||
|
{
|
||||||
ga_clear_strings(&argtypes);
|
ga_clear_strings(&argtypes);
|
||||||
|
ga_clear(&arg_objm);
|
||||||
|
}
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
|
|
||||||
@@ -1732,6 +1735,7 @@ errret:
|
|||||||
if (types_optional)
|
if (types_optional)
|
||||||
{
|
{
|
||||||
ga_clear_strings(&argtypes);
|
ga_clear_strings(&argtypes);
|
||||||
|
ga_clear(&arg_objm);
|
||||||
if (fp != NULL)
|
if (fp != NULL)
|
||||||
vim_free(fp->uf_arg_types);
|
vim_free(fp->uf_arg_types);
|
||||||
}
|
}
|
||||||
|
@@ -699,6 +699,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 */
|
||||||
|
/**/
|
||||||
|
1941,
|
||||||
/**/
|
/**/
|
||||||
1940,
|
1940,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user