<i>Memory Leak in Time/Date-Functions</i> status still Open with 6 other changes
by
.
D 2004-03-05T23:30:21
J assignee das
J icomment Logged\sIn:\sYES\s\nuser_id=99768\n\nThe\svariable\sreturned\sby\s'localtime'\sis\sin\sfact\ssupposed\nto\sbe\sstatic,\srather\sthan\sdynamically\sallocated.\s\sIf\na\smemory\smanagement\stool\sis\sreporting\sthe\s'struct\stm'\nin\sthese\sfunctions\sas\sbeing\sleaked,\sit\sis\seither\sthe\stool\sor\nthe\sC\slibrary\sthat\sis\sin\serror.\s\sFreeing\sthe\smemory\nreturned\sby\s'localtime'\swould\sbe\sa\scatastrophic\sbug.\n\nThe\scode\sin\stclUnixTime.c\shas\sbeen\sreplaced\swith\sthe\n'ThreadSafeGMTime'\sand\s'ThreadSafeLocalTime'\nfunctions\ssome\stime\sago.\s\sThose\sfunctions\suse\ngmtime_r\sand\slocaltime_r\sif\savailable,\sand\sprotect\sthe\noperation\swith\sa\smutex\sif\sthey\sare\snot\savailable.\n\nThe\sUnix\scode\sfor\sthese\sfunctions\suses\sa\sthread-specific\ndata\sblock;\sthese\sblocks\sare\scleaned\sup\sautomatically\nin\sTcl_FinalizeThread\supon\sexit\sfrom\sthe\sthread.\n\nSince\sClassic\sMac\sis\snot\ssupported,\sand\sthe\sproposal\nis\safloat\sto\smove\sthe\smac/\sdirectory\sto\sthe\sAttic,\nI\squestion\swhether\sit's\snecessary\sat\sthe\smoment\sto\ndo\sanything\swith\stclMacTime.c.\s\sI'm\sassigning\sthis\sbug\nover\sto\sthe\slast\sknown\smaintainer\sof\sthe\sMac\scode\nto\ssee\sif\she\swants\sto\sdo\sanything\swith\sit.\n\nIn\sshort:\sI\ssee\sno\sleaks;\sthe\sClassic\sMac\scode\smay\shave\nissues\swith\sthread\ssafety.\n
J login kennykb
J mimetype text/plain
J priority 1\sZero
J username kennykb
K 862924ffffffffffffffffffffffffffffffffff
U kennykb
Z 6d176c63204c004da3b9e26e7d7ef5e6