Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 38ee0504dddad5277ac3707323505ca66e939235
Ticket: 2688184fffffffffffffffffffffffffffffffff
Tcl_Obj leak in TclpObjNormalizePath (tclWinFile.c)
User & Date: mistachkin on 2009-03-16 04:08:25
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    The TclpObjNormalizePath function in tclWinFile.c has an object leak.  The original object is allocated here:
    
    Tcl_Obj *to = WinReadLinkDirectory(nativePath);
    
    The value of the "to" variable is later assigned to the "temp" variable:  
    
    if (temp != NULL) {
        Tcl_DecrRefCount(temp);
    }
    temp = to;
    
    The intermediate values of the "temp" variable are properly freed; however, the final value of the "temp" variable is not freed after the containing while loop exits.
    
    The simplest way to I have found to reproduce this leak is to use [file normalize] on a path that uses NT reparse points.
    
    This leak also appears to impact Tcl 8.4 and 8.5.
    
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "mistachkin"
  10. subsystem changed to: "36. Pathname Management"
  11. title changed to:
    Tcl_Obj leak in TclpObjNormalizePath (tclWinFile.c)
    
  12. type changed to: "Bug"