: <i>TclObjTest_Init leaks when Tcltest is initialized twice in an interpreter</i> plus 8 other changes
by
.
D 2026-10-13T12:07:32.981
J assignee jan.nijtmans
J closedate 2461327.0052428357
J closer jan.nijtmans
J comment <code>TclObjTest_Init()</code>\sleaks\sits\sarray\sof\sobject\svariables\s(160\sbytes)\swhen\r\nTcltest\sis\sinitialized\stwice\sin\san\sinterpreter,\sas\sit\sis\sin\severy\r\n<code>testthread</code>\sthread\s(by\sthe\spost-init\s<code>load\s{}\sTcltest</code>\sand\sagain\r\nby\s<code>NewTestThread()</code>).\sFound\swith\svalgrind.\sThe\sper-interp\sarray\swas\r\nintroduced\sby\sthe\sfix\sfor\s[3386721fff].\r\n\r\nProposed\sfix\sin\sbranch\s[/timeline?r=tcltest-objtest-reinit-leak|tcltest-objtest-reinit-leak]:\r\nkeep\sthe\sexisting\sarray.
J icomment Fixed\sin\s[214777d5aab51db8|trunk],\sbackported\sto\score-9-0-branch\sand\score-8-6-branch.\r\n\r\nSince\sthis\sis\sa\schange\sin\sthe\stest\sonly,\sthis\sticket\swill\snot\sbe\smentioned\sin\sthe\srelease\snotes.\r\n\r\nMany\sthanks!
J login jan.nijtmans
J mimetype text/x-fossil-wiki
J resolution Fixed
J status Closed
K 6525391072cf1e8e8fdc04084a5856adc9bfcc3c
U jan.nijtmans
Z 2a6f888f79640a0cda61046bbf6fa97c