Skip to content
Tcl Source Code Artifact [27f96860af]
Login

Artifact [27f96860af]

Artifact 27f96860af46ee976729b0a53ffcddb34508b319:

Ticket change [27f96860af] - New ticket [736425ffffffffff|736425ffff] <i>memory leaks in tclDate.c</i>. by mistachkin on 2003-05-12 11:27:58.
D 2003-05-12T11:27:58
J assignee kennykb
J cmimetype text/plain
J comment generic/tclDate.c\n\n1.\sShouldn't\sthis\sfile\sbe\susing\sckalloc/ckrealloc?\s\n2.\sThe\sfollowing\svariables\sare\sallocated\sand\sare\s\nnever\sfreed:\s\n\nint\s*TclDates;\s\nYYSTYPE\s*TclDatev;\s\n\n-----\n\nIt\sappears\sthat\swe\scan\soverride\sthe\suse\sof\s\nmalloc/realloc\sby\sdefining\sthe\sYYEXPAND\s\npreprocessor\smacro\sand\shaving\sit\scall\sa\sfunction\s\nwhich\sdoes\sckalloc/ckrealloc\sinstead.\n\nAs\sfor\sthe\sleak,\sI\sthink\ssince\sthe\sonly\smemory\sthat\s\nis\sallocated\sby\sthis\sfile\sis\sthe\stwo\sstatic\svariables\s\nabove,\sa\sfinalization\sroutine\sis\sin\sorder.\s\sThis\s\nshould\sbe\sa\sfairly\strivial\sfix.\n\nI\shave\sattached\sa\spreliminary\sfix\sfor\sthese\stwo\s\nissues\s(this\sis\snot\sa\spatch,\sit's\sjust\ssome\scode\sto\s\ncut\sand\spaste\sinto\stclDate.c/tclGetDate.y).\n\nI'm\swilling\sto\slearn\syacc\sto\sassist\sif\snecessary.\n\nAs\sa\s"next\sgen"\ssolution\sto\sthis\sproblem,\sI\s\nsuggested\sto\sdkf\sthat\swe\sparse\sthe\sdates\susing\sTcl\s\ncode\sthat\sis\sevaluated\swhen\snecessary\s(since\syacc\s\nappears\sto\sbe\srather\swild).\n
J foundin None
J priority 9\sImmediate
J resolution None
J status Open
J submitter mistachkin
J subsystem 06.\sTime\sMeasurement
J title memory\sleaks\sin\stclDate.c
J type Bug
K 736425ffffffffffffffffffffffffffffffffff
U mistachkin
Z 2734b10c8da3fc0cbc0f6775eee731ff