From c4b3f6477c4956c49da1277d55e6915ea7e6a39e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 30 Dec 2022 10:36:34 +0000 Subject: [PATCH] patch 9.0.1109: leaking allocated type Problem: Leaking allocated type. Solution: Reset the "static" flag in the allocated type copy. --- src/version.c | 2 ++ src/vim9instr.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/version.c b/src/version.c index d2e01fe27..773a91978 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1109, /**/ 1108, /**/ diff --git a/src/vim9instr.c b/src/vim9instr.c index b4c66e39b..f5795cdf9 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; } } -- 2.40.0