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:
@@ -695,6 +695,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 */
|
||||||
|
/**/
|
||||||
|
1109,
|
||||||
/**/
|
/**/
|
||||||
1108,
|
1108,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -594,6 +594,7 @@ generate_TYPECHECK(
|
|||||||
if (tt != NULL)
|
if (tt != NULL)
|
||||||
{
|
{
|
||||||
*tt = *expected;
|
*tt = *expected;
|
||||||
|
tt->tt_flags &= ~TTFLAG_STATIC;
|
||||||
tt->tt_flags |= TTFLAG_NUMBER_OK;
|
tt->tt_flags |= TTFLAG_NUMBER_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user