.
D 2005-09-23T04:46:39
J assignee kennykb
J cmimetype text/plain
J comment \nEnd\sof\sthe\sTcl_SetBignumObj\sroutine:\n\n\s\s\s\s/*\sClear\sthe\svalue\swith\smp_init;\smp_clear\noverwrites\sthe\sdigit\sarray.\s*/\n\n\s\s\s\smp_init(bignumValue);\n\n(Same\sissue\sin\sTcl_NewBignumObj)\n\nThe\scomment\ssuggests\sthat\sour\sintent\nis\sto\sfree\sthe\smemory\sof\sthe\sbignumValue\npassed\sin,\swhile\snot\sfreeing\sthe\sdigit\sarray\nthat's\sbeen\stransferred\sto\sthe\sintrep\sof\nthe\sTcl_Obj.\s\sThis\sintent\swould\sallow\ncallers\sof\sTcl_(Set|New)BignumObj\nto\snot\shave\sto\sworry\sabout\scalling\smp_clear.\nThey\scan\sthink\sof\sthese\sfunctions\sas\ntransferring\sownership\sof\stheir\smp_int\nvalue\sto\sTcl.\n\nTrouble\sis\sthat\smp_init()\sallocates\na\sminimum-sized\sdigit\sarray\sof\nMP_PREC\smp_digits.\s\sThis\sdigit\narray\sis\sbeing\sleaked.\n\nThere's\sa\sfix\sfor\sthis\son\sthe\nnumerics-branch,\sand\sthese\nroutines\saren't\sactually\sused\non\sthe\sHEAD\syet.\s\sA\sbetter\nnumerics\sbranch\sfix,\sfollowed\sby\nmerge\sonto\sthe\sHEAD\sis\sthe\nway\sforward.\n
J foundin obsolete:\s8.5a4
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 10.\sObjects
J title Tcl_SetBignumObj\smemory\sleak
J type Bug
K 1299803fffffffffffffffffffffffffffffffff
U dgp
Z 2e5a4980744d85435704180238ca5ffb