Skip to content
Tcl Source Code History Of Ticket 3598150fffffffffffffffffffffffffffffffff
Login

History Of Ticket 3598150fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 3598150fffffffffffffffffffffffffffffffff

  1. Ticket change [06f637206d] (rid 89303) by afredd on 2012-12-22 13:21:19:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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!
      
    4. foundin initialized to: "current: 8.6.0"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "afredd"
    10. subsystem initialized to: "None"
    11. title initialized to: "TclDStringToObj may trigger leak"
    12. type initialized to: "Bug"
  2. Ticket change [148928c6dc] (rid 124410) by ferrieux on 2012-12-23 02:22:58:

    1. assignee changed to: "ferrieux"
    2. closedate changed to: "2012-12-22T19:22:58"
    3. closer changed to: "ferrieux"
    4. icomment:
      Good catch ! Fixed in trunk.
      
      Note that, instead of purely removing that "if", I preserved it inside the static alloc case, because it corresponds to the overwhelming use case of a freshly created, empty DString, which deserves to be fast.
      
      
    5. login: "ferrieux"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. subsystem changed to: "41. Memory Allocation"
    10. username: "ferrieux"