Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e20c41b30d2f1badb6f431562cad22a88be8164d
Ticket: f00009f7ce4b58c8b6caedf976e37ea78be6d3c0
file exists, mtime... procedures leaks
User & Date: RP. on 2015-07-29 08:37:45
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    When I use command "file mtime" or "file exists" with parameter provided as result of "file join" command it leaks memory.
    Example:
    
    set path1 C:/example.txt
    set path2 [file join C:/ example.txt]
    file exists $path1 ;# this not leaks
    file exists $path2 ;# this leaks
    
    Note that there is difference between representations of both paths:
    
    % ::tcl::unsupported::representation $path1
    value is a pure string with a refcount of 4, object pointer at 006587A0, string representation "C:/example.txt"
    % ::tcl::unsupported::representation $path2
    value is a string with a refcount of 2, object pointer at 00658338, internal representation 00665318:00000000, string representation "C:/example.txt"
    
  5. foundin changed to: "8.6.4"
  6. is_private changed to: "0"
  7. login: "RP."
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "8aeeb7bf106b6b88d87c6e2a0fdc8f4887991b9f"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "RP."
  14. subsystem changed to: "37. File System"
  15. title changed to: "file exists, mtime... procedures leaks"
  16. type changed to: "Bug"