Overview
| Artifact ID: | 44a1205ab4d1deebbd046b6733d87bbbdc4973ad |
|---|---|
| Ticket: | 4dbdd9af1439d874381fd6fdb968bcb0d596f0bb
TclDeleteNamespaceVars leaks when unset trace revives var under deletion |
| User & Date: | mr_calvin on 2016-09-07 21:10:33 |
Changes
- closedate changed to: "2457639.38232674"
- closer changed to: "mr_calvin"
- icomment:
Thx Don for taking care of this. I can confirm that the leaks are effectively plugged this way (tested with valgrind also). One follow-up question: TclDeleteNamespaceVars is for namespaced vars specifically. Provided that an extension uses TclInitVarHashTable to provide for custom var tables (e.g., for objects without namespaces as in NSF/NX), TclDeleteVars (on cleanup) does not come with an equivalent, now fixed logic to deal with reviving unset traces. The doc on TclDeleteVars says "For this function to work correctly, it must not be possible for any of the variables in the table to be accessed from Tcl commands (e.g. from trace functions)." Mmmmh. So for extensions, one is left with a leaking delete procedure (TclDeleteVars)?
- login: "mr_calvin"
- mimetype: "text/plain"