0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.1109: leaking allocated type

Problem:    Leaking allocated type.
Solution:   Reset the "static" flag in the allocated type copy.
This commit is contained in:
Bram Moolenaar
2022-12-30 10:36:34 +00:00
parent c6951a76a5
commit c4b3f6477c
2 changed files with 3 additions and 0 deletions

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1109,
/**/
1108,
/**/

View File

@@ -594,6 +594,7 @@ generate_TYPECHECK(
if (tt != NULL)
{
*tt = *expected;
tt->tt_flags &= ~TTFLAG_STATIC;
tt->tt_flags |= TTFLAG_NUMBER_OK;
}
}