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