summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-12-30 10:36:34 +0000
committerBram Moolenaar <Bram@vim.org>2022-12-30 10:36:34 +0000
commitc4b3f6477c4956c49da1277d55e6915ea7e6a39e (patch)
tree860fdc4bd5ae0ed882dfdf286cda348226c86aa4
parentc6951a76a58663ef8a773d340f2260da7455643c (diff)
patch 9.0.1109: leaking allocated typev9.0.1109
Problem: Leaking allocated type. Solution: Reset the "static" flag in the allocated type copy.
-rw-r--r--src/version.c2
-rw-r--r--src/vim9instr.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c
index d2e01fe272..773a919789 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1109,
+/**/
1108,
/**/
1107,
diff --git a/src/vim9instr.c b/src/vim9instr.c
index b4c66e39b0..f5795cdf94 100644
--- a/src/vim9instr.c
+++ b/src/vim9instr.c
@@ -594,6 +594,7 @@ generate_TYPECHECK(
if (tt != NULL)
{
*tt = *expected;
+ tt->tt_flags &= ~TTFLAG_STATIC;
tt->tt_flags |= TTFLAG_NUMBER_OK;
}
}