commit | c4b3f6477c4956c49da1277d55e6915ea7e6a39e | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Dec 30 10:36:34 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Dec 30 10:36:34 2022 +0000 |
tree | 860fdc4bd5ae0ed882dfdf286cda348226c86aa4 | |
parent | c6951a76a58663ef8a773d340f2260da7455643c [diff] [blame] |
patch 9.0.1109: leaking allocated type Problem: Leaking allocated type. Solution: Reset the "static" flag in the allocated type copy.
diff --git a/src/vim9instr.c b/src/vim9instr.c index b4c66e3..f5795cd 100644 --- a/src/vim9instr.c +++ b/src/vim9instr.c
@@ -594,6 +594,7 @@ if (tt != NULL) { *tt = *expected; + tt->tt_flags &= ~TTFLAG_STATIC; tt->tt_flags |= TTFLAG_NUMBER_OK; } }