Overview
| Artifact ID: | 04984cf2a99343ede2ed1eab1f98885b5381c1511e8b7d9f592c56b46aab2939 |
|---|---|
| Ticket: | 6525391072cf1e8e8fdc04084a5856adc9bfcc3c
TclObjTest_Init leaks when Tcltest is initialized twice in an interpreter |
| User & Date: | serhiy.storchaka on 2026-10-12 15:29:18 |
Changes
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
<code>TclObjTest_Init()</code> leaks its array of object variables (160 bytes) when Tcltest is initialized twice in an interpreter, as it is in every <code>testthread</code> thread (by the post-init <code>load {} Tcltest</code> and again by <code>NewTestThread()</code>). Found with valgrind. The per-interp array was introduced by the fix for [3386721fff]. Proposed fix in branch [/timeline?r=tcltest-objtest-reinit-leak|tcltest-objtest-reinit-leak]: keep the existing array. - foundin changed to: "9.1.0"
- login: "serhiy.storchaka"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "serhiy.storchaka"
- subsystem changed to: "69. Other"
- title changed to:
TclObjTest_Init leaks when Tcltest is initialized twice in an interpreter
- type changed to: "Bug"