Skip to content

Commit

Permalink
patch 9.0.1109: leaking allocated type
Browse files Browse the repository at this point in the history
Problem:    Leaking allocated type.
Solution:   Reset the "static" flag in the allocated type copy.
  • Loading branch information
brammool committed Dec 30, 2022
1 parent c6951a7 commit c4b3f64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1109,
/**/
1108,
/**/
Expand Down
1 change: 1 addition & 0 deletions src/vim9instr.c
Expand Up @@ -594,6 +594,7 @@ generate_TYPECHECK(
if (tt != NULL)
{
*tt = *expected;
tt->tt_flags &= ~TTFLAG_STATIC;
tt->tt_flags |= TTFLAG_NUMBER_OK;
}
}
Expand Down

0 comments on commit c4b3f64

Please sign in to comment.