<i>TclObjTest_Init leaks when Tcltest is initialized twice in an interpreter</i>.
by
.
D 2026-10-12T15:29:18.555
J cmimetype text/x-fossil-wiki
J comment <code>TclObjTest_Init()</code>\sleaks\sits\sarray\sof\sobject\svariables\s(160\sbytes)\swhen\nTcltest\sis\sinitialized\stwice\sin\san\sinterpreter,\sas\sit\sis\sin\severy\n<code>testthread</code>\sthread\s(by\sthe\spost-init\s<code>load\s{}\sTcltest</code>\sand\sagain\nby\s<code>NewTestThread()</code>).\sFound\swith\svalgrind.\sThe\sper-interp\sarray\swas\nintroduced\sby\sthe\sfix\sfor\s[3386721fff].\n\nProposed\sfix\sin\sbranch\s[/timeline?r=tcltest-objtest-reinit-leak|tcltest-objtest-reinit-leak]:\nkeep\sthe\sexisting\sarray.
J foundin 9.1.0
J login serhiy.storchaka
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter serhiy.storchaka
J subsystem 69.\sOther
J title TclObjTest_Init\sleaks\swhen\sTcltest\sis\sinitialized\stwice\sin\san\sinterpreter
J type Bug
K 6525391072cf1e8e8fdc04084a5856adc9bfcc3c
U serhiy.storchaka
Z 16d5c49336475c9a217bca804b311e9d