#3752 Tcl_SetVar2 contais a memory leak

obsolete: 8.4.15
closed-invalid
5
2007-07-29
2007-07-29
Anonymous
No

I think the Tcl_IncrRefCount(valuePtr) statement does not belong there and causes a memory leak

Discussion

  • Donal K. Fellows

    • labels: 105679 --> 07. Variables
    • assigned_to: hobbs --> msofer
    • status: open --> closed-invalid
     
  • Donal K. Fellows

    Logged In: YES
    user_id=79902
    Originator: NO

    And yet masses of code doesn't leak. Seems someone's expectations are wrong...

     
  • miguel sofer

    miguel sofer - 2007-07-30

    Logged In: YES
    user_id=148712
    Originator: NO

    Any evidence? Because I do not think so, and neither does valgrind.

    It is balanced by a Tcl_DecrRefCount two lines below. The incr/decr spiel is necessary for ... hairy monster issues (see http://wiki.tcl.tk/14880\)

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks