Skip to content
Tcl Source Code Artifact [96993f2046]
Login

Artifact [96993f2046]

Artifact 96993f2046763ce4779752de6b9cf6b8fc179152:

Ticket change [96993f2046] - New ticket [736426ffffffffff|736426ffff] <i>memory leaks in tclThreadAlloc.c</i>. by mistachkin on 2003-05-12 11:28:51.
D 2003-05-12T11:28:51
J assignee hobbs
J cmimetype text/plain
J comment generic/tclThreadAlloc.c\s\n\n1.\sWe\shave\sthe\sstatic\sfile\svariables:\s\n\nstatic\sTcl_Mutex\s*listLockPtr;\s\nstatic\sTcl_Mutex\s*objLockPtr;\s\n\n2.\sThey\sare\sallocated\svia\sTclpNewAllocMutex,\swhich\s\nBOTH\sallocates\smemory\svia\smalloc\sAND\scalls\s\nInitializeCriticalSection\son\sthe\scontained\scritical\s\nsection.\s\n\n3.\sNeither\sthe\sblock\sof\smemory\snor\sthe\scritical\s\nsection\sare\sever\sfreed.\s\n\n4.\sThis\sapplies\sto\sthe\sabove\sstatic\svariables\sand\s\nto\sany\sother\smutexes\sallocated\svia\s\nTclpNewAllocMutex.\n\n5.\sThere\sneeds\sto\sbe\sa\snew\sfunction\sin\s\ntclThreadAlloc.c,\s\ncalled\s"TclFinalizeThreadAllocSubsystem",\sthat\s\nfrees\sthese\smutexes\s(probably\sby\scalling\san\s\nappropriate\splatform\sspecific\sfunc,\syet\sto\sbe\s\ncreated,\sperhaps\scalled\s"TclpNewFreeMutex")\sand\s\nthen\scalls\sthe\s"TclpFinalizeThreadAllocSubsystem"\s\nfunction\sfor\sthe\splatform\sspecific\scleanup\s(i've\s\ncreated\sthe\sWin32\sversion\sof\sthis\sfunction\sin\smy\s\nnew\spatch\s#731356).\s\n\n6.\sYet\sanother\sleak\sinvolves\sfreeing\sthe\sactual\sTLS\s\nindex\sused\sby\sthe\sthreaded\smemory\sallocator.\s\n
J foundin None
J priority 9\sImmediate
J resolution None
J status Open
J submitter mistachkin
J subsystem 41.\sMemory\sAllocation
J title memory\sleaks\sin\stclThreadAlloc.c
J type Bug
K 736426ffffffffffffffffffffffffffffffffff
U mistachkin
Z 830c0ab89d6cb1b58c9a16aa06168c1e