]> granicus.if.org Git - vim/commitdiff
patch 9.0.1109: leaking allocated type v9.0.1109
authorBram Moolenaar <Bram@vim.org>
Fri, 30 Dec 2022 10:36:34 +0000 (10:36 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 30 Dec 2022 10:36:34 +0000 (10:36 +0000)
Problem:    Leaking allocated type.
Solution:   Reset the "static" flag in the allocated type copy.

src/version.c
src/vim9instr.c

index d2e01fe272d57f6339e54f265489c8e8aeef4387..773a919789d25acba7ca0070d3e0b26033423c8a 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1109,
 /**/
     1108,
 /**/
index b4c66e39b033fe68bce3725ace3da12f065b2dd2..f5795cdf94b0c1edeec303b40a0283c3adc4131a 100644 (file)
@@ -594,6 +594,7 @@ generate_TYPECHECK(
        if (tt != NULL)
        {
            *tt = *expected;
+           tt->tt_flags &= ~TTFLAG_STATIC;
            tt->tt_flags |= TTFLAG_NUMBER_OK;
        }
     }