Artifacts Associated With Ticket 218456
Ticket change [f2e21a163d] (rid 109634) by nobody on 2000-10-26 01:00:36:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 598 Bug Version: 8.0p2 SubmitDate: '1998-05-21' LastModified: '1998-09-30' Severity: SER Status: Released Submitter: rjohnson ChangedBy: rjohnson OS: All Unix OSVersion: NA Machine: NA FixedDate: '2000-10-25' FixedInVersion: 8.0.4 ClosedDate: '1998-09-30' There is a memory leak in tkUnixWm.c in Tk8.0p2. It appears to still be present in Tk8.1a2. This patch should be self explanatory. Ian Taylor [email protected] *** /5g/ian/tk8.0p2/unix/tkUnixWm.c Fri Oct 31 14:29:22 1997 --- tkUnixWm.c Tue Apr 14 17:47:21 1998 *************** Tk_WmCmd(clientData, interp, argc, argv) *** 1324,1329 **** --- 1324,1332 ---- interp->result = (wmPtr->iconName != NULL) ? wmPtr->iconName : ""; return TCL_OK; } else { + if (wmPtr->iconName != NULL) { + ckfree(wmPtr->iconName); + } wmPtr->iconName = ckalloc((unsigned) (strlen(argv[3]) + 1)); strcpy(wmPtr->iconName, argv[3]); if (!(wmPtr->flags & WM_NEVER_MAPPED)) { *************** Tk_WmCmd(clientData, interp, argc, argv) *** 1723,1728 **** --- 1726,1734 ---- : winPtr->nameUid; return TCL_OK; } else { + if (wmPtr->title != NULL) { + ckfree(wmPtr->title); + } wmPtr->title = ckalloc((unsigned) (strlen(argv[3]) + 1)); strcpy(wmPtr->title, argv[3]); if (!(wmPtr->flags & WM_NEVER_MAPPED)) {
- foundin initialized to: "obsolete: 8.0p2"
- 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: "Memory leak in tkUnixWm.c"
- type initialized to: "Bug"
Ticket change [d1d4b95116] (rid 113421) by welch on 2000-10-26 08:22:17:
- closedate changed to: "2000-10-26T01:22:17"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [a095701268] (rid 96837) by dgp on 2001-04-16 20:36:15:
- closedate changed to: "2001-04-16T13:36:15"
- closer changed to: "dgp"
- resolution changed to: "Invalid"
- subsystem changed to: "None"