Overview
| Artifact ID: | 96dc99bc1a83518d0da03e5c9a29c1cb69c0ca3e |
|---|---|
| Ticket: | 1717186fffffffffffffffffffffffffffffffff
lsort can leak memory in error case |
| User & Date: | afredd on 2007-05-11 12:49:48 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
The listObj is not free'd in the error case where the given -command string is not a valid list: Consider: proc A {} { set lst [lrepeat 999 999] catch { lsort -command "foo \{" $lst } } while 1 { A } ;# leaks Just needs a Tcl_DecrRefCount(listObj); in the if (Tcl_ListObjAppendElement(interp, newCommandPtr, newObjPtr) != TCL_OK) block. - foundin changed to: "obsolete: 8.5a6"
- 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: "17. Commands I-L"
- title changed to: "lsort can leak memory in error case"
- type changed to: "Bug"