Skip to content

Commit e5730bd

Browse files
committed
patch 8.2.2220: Vim9: memory leak when parsing nested parenthesis
Problem: Vim9: memory leak when parsing nested parenthesis. Solution: Clear newargs.
1 parent 7e36820 commit e5730bd

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/userfunc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ get_lambda_tv(
574574
{
575575
if (types_optional)
576576
ga_clear_strings(&argtypes);
577+
ga_clear_strings(&newargs);
577578
return white_error ? FAIL : NOTDONE;
578579
}
579580
*arg = s;

src/version.c

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

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2220,
753755
/**/
754756
2219,
755757
/**/

0 commit comments

Comments
 (0)