Skip to content
Tcl Source Code Artifact [35bfa68e39]
Login

Artifact [35bfa68e39]

Artifact 35bfa68e397e209171d4a1aaae49176f83bbabdc35715acff3191c5569bab332:

Ticket change [35bfa68e39] - Ticket [46442d45efc02ebf|46442d45ef] <i>memleak in dict implementation, AllocChainEntry</i> status still Open with 3 other changes by dkf on 2023-11-27 16:59:08.
D 2023-11-27T16:59:08.318
J icomment Is\sthis\sleaked\sby\s`AllocChainEntry`\sor\sby\s`TclMergeReturnOptions`\sor\swhat?\r\n\r\n`AllocChainEntry`\sis\sjust\smaking\san\sentry\sin\sthe\shashtable,\sand\sis\slittle\smore\sthan\sa\swrapper\saround\s`Tcl_Alloc`.\sIt\s(effectively)\sreturns\sa\spointer\sto\sthe\smemory\sit\sallocates;\sas\ssuch,\sit\scannot\sleak\sitself.\sThis\sinstead\slooks\sto\sbe\sa\sleak\sfurther\sup\sthe\sstack,\sprobably\sin\s`TclMergeReturnOptions`,\s`Tcl_SetReturnOptions`\sor\s(hopefully\snot)\s`TEBCresume`.\r\n\r\nOr\smaybe\sthose\sare\sall\sbystanders\sand\sthese\sare\sjust\sthe\splaces\swhere\sthings\sare\scorrectly\sallocated,\sand\sthe\sproblem\sis\sthe\sabsence\sof\sa\s`Tcl_DecrRefCount`\selsewhere?\s(That's\swhat\sI\sreally\ssuspect\sis\sthe\sproblem,\sFWIW.)\r\n\r\nA\ssmaller\sexample\sthat\scan\sreproduce\sthis\swould\shelp...
J login dkf
J mimetype text/x-markdown
K 46442d45efc02ebf03e3054227210fbc54a3da2c
U dkf
Z f55ff1acda7d5c95ed11ecb901b84e0d