Artifacts Associated With Ticket 218738
Ticket change [125d80caf9] (rid 95294) by nobody on 2000-10-26 01:04:46:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1952 Bug Version: 8.1b3 SubmitDate: '1999-04-27' LastModified: '1999-08-08' Severity: LOW Status: Released Submitter: pat ChangedBy: hobbs OS: Other OSVersion: BSD/OS 4.1 Machine: NA FixedDate: '1999-08-08' ClosedDate: '2000-10-25' Name: Robert Hare ReproducibleScript: The manual pages when refering to Tcl_DecrRefCount all state that the object is freed when its reference count reaches 0. They need to be changed to read that the object is freed when the reference count is less than or equal to zero. The macro Tcl_DecrRefCount actually does check for less than or equal. This is important since code may create a new object and then reach an error state prior to incrementing the reference count by calling Tcl_SetObjResult. In this case the documentation is not clear as to what will happen if Tcl_DecrRefCount is called with the reference count being 0. Will the reference count be decremented to -1 and the object's memory lost? It turns out the behavior is correct, just the documentation is confusing. Fixed in 8.2b3 documentation. -- 08/08/1999 hobbs - foundin initialized to: "obsolete: 8.1b3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to:
Documentation for Tcl_DecrRefCount should be changed.
- type initialized to: "Bug"
Ticket change [319c7a59b0] (rid 93458) by welch on 2000-10-26 08:28:12:
- closedate changed to: "2000-10-26T01:28:12"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [862bc637cd] (rid 131455) by dgp on 2001-04-17 06:05:12:
- closedate changed to: "2001-04-16T23:05:12"
- closer changed to: "dgp"
- subsystem changed to: "10. Objects"