Skip to content

Commit 3aa1144

Browse files
yegappanchrisbra
authored andcommitted
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 <[email protected]> Co-authored-by: Yegappan Lakshmanan <[email protected]>
1 parent e1b95f5 commit 3aa1144

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/userfunc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,10 @@ get_lambda_tv(
17211721
eval_lavars_used = old_eval_lavars;
17221722
vim_free(tofree2);
17231723
if (types_optional)
1724+
{
17241725
ga_clear_strings(&argtypes);
1726+
ga_clear(&arg_objm);
1727+
}
17251728

17261729
return OK;
17271730

@@ -1732,6 +1735,7 @@ get_lambda_tv(
17321735
if (types_optional)
17331736
{
17341737
ga_clear_strings(&argtypes);
1738+
ga_clear(&arg_objm);
17351739
if (fp != NULL)
17361740
vim_free(fp->uf_arg_types);
17371741
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,8 @@ static char *(features[]) =
699699

700700
static int included_patches[] =
701701
{ /* Add new patch number below this line */
702+
/**/
703+
1941,
702704
/**/
703705
1940,
704706
/**/

0 commit comments

Comments
 (0)