Artifacts Associated With Ticket 1299803fffffffff
Ticket change [a9070053b7] (rid 99083) by dgp on 2005-09-23 04:46:39:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- comment initialized to:
End of the Tcl_SetBignumObj routine: /* Clear the value with mp_init; mp_clear overwrites the digit array. */ mp_init(bignumValue); (Same issue in Tcl_NewBignumObj) The comment suggests that our intent is to free the memory of the bignumValue passed in, while not freeing the digit array that's been transferred to the intrep of the Tcl_Obj. This intent would allow callers of Tcl_(Set|New)BignumObj to not have to worry about calling mp_clear. They can think of these functions as transferring ownership of their mp_int value to Tcl. Trouble is that mp_init() allocates a minimum-sized digit array of MP_PREC mp_digits. This digit array is being leaked. There's a fix for this on the numerics-branch, and these routines aren't actually used on the HEAD yet. A better numerics branch fix, followed by merge onto the HEAD is the way forward. - foundin initialized to: "obsolete: 8.5a4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "10. Objects"
- title initialized to: "Tcl_SetBignumObj memory leak"
- type initialized to: "Bug"
Ticket change [abb724e2eb] (rid 101163) by dgp on 2005-09-23 23:24:40:
- icomment:
Logged In: YES user_id=80530 improved fix now on numerics branch.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [4c4de1a81b] (rid 126864) by dgp on 2005-10-14 00:46:48:
- assignee changed to: "dgp"
- closedate changed to: "2005-10-13T17:46:48"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 fixed by the TIP 237 merge.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"