Overview
| Artifact ID: | f67db7fdbd2be4e074a3f96b5d3c21ce1cbf292c |
|---|---|
| Ticket: | 3386721fffffffffffffffffffffffffffffffff
leak in tcltest |
| User & Date: | ferrieux on 2011-08-10 23:16:59 |
Changes
- icomment:
Jan, you're up the wrong tree :} There are two orthogonal things (1) the fact that the varPtr are never freed actively (2) the fact that two calls to TclTestObj_Init by two interps wreak havoc by overwriting the static array As it turns out, (1) is no problem because valgrind marks such blocks as "still reachable" (and there are a bunch of other such ones : a low priority endeavour), while here we're after the more ominous "definitely lost". And (2) is the real problem: an overwritten last reference to an object makes it definitely lost indeed. Note that using the TSD is not enough. As I said earlier, those data shoule be per-interp, not per-thread: there may be several interps in a single thread, as is notably the case here (a slave).
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"