Skip to content
Tcl Source Code Artifact [bb05c93c5c]
Login

Artifact [bb05c93c5c]

Artifact bb05c93c5c51331bfd96125d78f299e817d1c474:

Ticket change [bb05c93c5c] - New ticket [653511ffffffffff|653511ffff] <i>Deallocate env vars when finalizing</i>. by mdejong on 2002-12-13 23:25:29.
D 2002-12-13T23:25:29
J assignee hobbs
J cmimetype text/plain
J comment Here\sis\sa\spatch\sthat\scalls\sckfree()\sin\nTclFinalizeEnvironment\nfor\senv\svars\sthat\sTcl\shas\sallocated.\sI\sran\sinto\sthis\swhile\ntrying\sto\splug\smemory\sleaks\sin\sthe\score\sso\sthat\sI\scould\nfigure\sout\sif\smy\sextension\swas\sleaking\smemory.\sThis\spatch\nwill\salso\sreset\sthe\soriginal\senviron\spointer\sin\nTclFinalizeEnvironment.\sWhile\sthis\sfixes\sthe\smemory\sleak,\nI\swanted\ssomeone\selse\sto\sreview\sit\sto\sso\sthey\scould\slook\sat\nthe\senviron\sstring\sissue\swith\sa\sfresh\seye.\sMy\squestion\sis,\nshould\sTcl\sreset\sthe\soriginal\sstate\safter\sit\sis\sunloaded\sor\nshould\sit\sleave\sthe\spossibly\smodified\senv\sarray\sthe\nway\sit\swas\sand\sleak\sthis\smemory?\sIf\sleaking\smemory\sis\nthe\sway\sto\sgo,\swould\sit\smake\ssense\sto\sallocate\sthem\swith\nmalloc\sso\sthat\sthey\sdo\snot\sshow\sup\sas\sleaked\smemory\swith\nTCL_MEM_DEBUG?
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter mdejong
J subsystem 08.\sEnvironment\sVariables
J title Deallocate\senv\svars\swhen\sfinalizing
J type Patch
K 653511ffffffffffffffffffffffffffffffffff
U mdejong
Z 1510370a4aa0ca7cf7dd3627956a049f