Menu

#291 memory leak in ItclCreateArgList function

4.0*
closed-out-of-date
nobody
memory leak (1)
5
2019-05-31
2019-05-31
No

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

Discussion

  • Gevorg Tevosyan

    Gevorg Tevosyan - 2019-05-31

    My Itcl version is 4.0.4

     
  • Don Porter

    Don Porter - 2019-05-31

    ~~~
    All work on Itcl 4.0.* is abandoned. Upgrade to Itcl 4.1.2 or development trunk.

     
  • Don Porter

    Don Porter - 2019-05-31

    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?

     
  • Don Porter

    Don Porter - 2019-05-31
    • status: open --> closed-out-of-date
    • Group: 3.3.0 --> 4.0*
     

Log in to post a comment.

MongoDB Logo MongoDB