Overview
| Artifact ID: | 06f637206de8b03fee62bd2f8f108dde5510c6aa |
|---|---|
| Ticket: | 3598150fffffffffffffffffffffffffffffffff
TclDStringToObj may trigger leak |
| User & Date: | afredd on 2012-12-22 13:21:19 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
While skimming thro' the new 8.6 source code, i spotted something that lloked fishy in tclUtil.c. If TclDStringToObj() is called on a DString whose length is zero, but which has had its string allocated, then it still needs an explicit call to Tcl_DStringFree. The documentation suggests this is not necessary. It looks to me like the first if block: if (dsPtr->length == 0) is wrong and should be removed. I've not tested this, so i may be missing something obvious. Merry Xmas!
- foundin changed to: "current: 8.6.0"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "afredd"
- subsystem changed to: "None"
- title changed to: "TclDStringToObj may trigger leak"
- type changed to: "Bug"