diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-12-30 10:36:34 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-30 10:36:34 +0000 |
commit | c4b3f6477c4956c49da1277d55e6915ea7e6a39e (patch) | |
tree | 860fdc4bd5ae0ed882dfdf286cda348226c86aa4 | |
parent | c6951a76a58663ef8a773d340f2260da7455643c (diff) | |
download | vim-git-c4b3f6477c4956c49da1277d55e6915ea7e6a39e.tar.gz |
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.c | 2 | ||||
-rw-r--r-- | src/vim9instr.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c index d2e01fe27..773a91978 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 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; } } |