Overview
| Artifact ID: | 38ee0504dddad5277ac3707323505ca66e939235 |
|---|---|
| Ticket: | 2688184fffffffffffffffffffffffffffffffff
Tcl_Obj leak in TclpObjNormalizePath (tclWinFile.c) |
| User & Date: | mistachkin on 2009-03-16 04:08:25 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "mistachkin"
- subsystem changed to: "36. Pathname Management"
- title changed to:
Tcl_Obj leak in TclpObjNormalizePath (tclWinFile.c)
- type changed to: "Bug"