Hi
file -> itclHelpers.c
function ->ItclCreateArgList
Tcl_SplitList allocates memory on argv and defaultArgv but those not fried in this function after usage which cause memory leaks
Below documentation for Tcl_SplitList https://www.tcl.tk/man/tcl8.4/TclLib/SplitList.htm in which it says that it is caller responsibility to free memory.
Thanks,
Gevorg
My Itcl version is 4.0.4
~~~
All work on Itcl 4.0.* is abandoned. Upgrade to Itcl 4.1.2 or development trunk.
That said, the routine ItclCreateArgList() in current development certainly includes ckfree() calls on both argv and defaultArgv. Can you specify the code path that misses those calls and leaks?
Sure looks like this was fixed more than 2 years ago. Upgrade to fix.
https://core.tcl-lang.org/itcl/info/0b0d0e0b8cd8105c