changeset 31553:d6291139df83 v9.0.1109

patch 9.0.1109: leaking allocated type Commit: https://github.com/vim/vim/commit/c4b3f6477c4956c49da1277d55e6915ea7e6a39e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 30 10:36:34 2022 +0000 patch 9.0.1109: leaking allocated type Problem: Leaking allocated type. Solution: Reset the "static" flag in the allocated type copy.
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Dec 2022 11:45:04 +0100
parents 4bee34b30991
children aa16a5da257a
files src/version.c src/vim9instr.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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;
 	}
     }