Skip to content
Tcl Source Code Artifact [53627a9298]
Login

Artifact [53627a9298]

Artifact 53627a92987ef2a792b5af051151a26b35be305a:

Ticket change [53627a9298] - Ticket [467523ffffffffff|467523ffff] <i>memory leak in [namespace eval foo {}]</i> status still Open with 4 other changes by rbrunner on 2001-10-05 02:27:06.
D 2001-10-05T02:27:06
J icomment Logged\sIn:\sYES\s\nuser_id=205230\n\nSome\sfurther\sobservations:\nAny\srecursive\scall\sto\sTcl_EvalObjEx\swith\san\sempty\sstring\s\nobject\sto\seval\sleaks:\n\n\s\stime\s{time\s{}}\n\s\stime\s{switch\s1\s1\s{}}\n\s\sswitch\s1\s1\s{time\s{}}\n\nIn\saddition\sI\sfound\sout,\sthat\sthese\scalls\sleak,\swhenever\s\nthe\sinnermost\sempty\scode\smatches\sthe\sLiteral\sthat\sis\sadded\s\nin\sTclCompile.c\sline\s1041\s(tcl8.4a3):\n\n\s\sTclRegisterLiteral(envPtr,\s"",\s0,\s/*onHeap*/\s0)\n\nSetting\sthis\sto\n\n\s\sTclRegisterLiteral(envPtr,\s"\s\s",\s2,\s/*onHeap*/\s0)\n\nmakes\s\n\n\s\stime\s{time\s{\s\s}}\n\nleak.\sIt\sseems\sthat\sthis\sequality\sincrements\sthe\sempty\s\ncodes\sobject's\srefCount\s(objPtr\sin\sTcl_evalObjEx)\sto\sbe\stoo\s\nhigh\s->\sit\sis\snot\scleaned\sup\sproperly.\n\n
J login rbrunner
J mimetype text/plain
J username rbrunner
K 467523ffffffffffffffffffffffffffffffffff
U rbrunner
Z 67482f615a29705fe953d7cd36eb7dbf