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
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-plain"
- 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.
- foundin changed to: "9.0"
- is_private changed to: "0"
- login: "apnadkarni"
- priority changed to: "5 Medium"
- private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "apnadkarni"
- subsystem changed to: "- New Builtin Commands"
- title changed to:
EncodingConvert{to,from}ObjCmd do not free Tcl_Encoding on error paths - type changed to: "Bug"