Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e3b4cb98563d91b9d30b5f6d43c5fc5406fb563bd7ac635a6425b6d369261f14
Ticket: e8b18d7b1fbe160a09d9d7dad382a3d150b41c87
EncodingConvert{to,from}ObjCmd do not free Tcl_Encoding on error paths
User & Date: apnadkarni on 2025-06-18 07:59:59
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    Both the mentioned functions have error paths that fail to call Tcl_EncodingFree on the retrieved Tcl_Encoding.
    
    The Tcl_Encoding structures are reference counted so there is no observable memory growth no matter how many times the error path is taken hence marked as Minor. But the resources are effectively never freed if there are encoding errors even if the encoding is no longer needed.
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    EncodingConvert{to,from}ObjCmd do not free Tcl_Encoding on error paths
    
  16. type changed to: "Bug"