Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-02-26
21:51 • Closed ticket [dab7fd5973]: Memory leak in commit [0a74820b6d] plus 6 other ... artifact: efd6cc1db0 user: jan.nijtmans
2023-02-24
14:07 • Ticket [dab7fd5973]: 3 changes artifact: d57636cb21 user: pooryorick
03:05 • Ticket [dab7fd5973]: 3 changes artifact: 8edc6efea4 user: apnadkarni
02:35 • Ticket [dab7fd5973]: 3 changes artifact: c7f0076ab6 user: apnadkarni
2023-02-23
21:22 • Open ticket [dab7fd5973]. artifact: bd029b86dc user: jan.nijtmans
21:20
Remove left-over traces of [0a74820b6d], which was merged into the apn-encoding-profile and landed i... check-in: ff7923a914 user: jan.nijtmans tags: bug-dab7fd5973
2023-02-18
01:17 • Closed ticket [dab7fd5973]: Memory leak in commit [0a74820b6d] plus 4 other ... artifact: 0e9f58a55c user: pooryorick
2023-02-14
10:48 • Pending ticket [dab7fd5973]. artifact: e7e4c3e0fb user: pooryorick
10:46 • Ticket [b8f575aa23] Tcl 9: eof erroneously flagged with not reported encoding re... artifact: b0e432ff04 user: pooryorick
10:28
fix for [dab7fd5973]: Memory leak in commit [0a74820b6d]. check-in: 3d64a2569b user: pooryorick tags: py-b8f575aa23-nopartial
2023-02-05
19:08 • Ticket [dab7fd5973] Memory leak in commit [0a74820b6d] status still Open wit... artifact: 989270c086 user: pooryorick
12:49
Proposed fix for [dab7fd5973]: Memory leak in commit [0a74820b6d] closed check-in: 9a22ed79ed user: jan.nijtmans tags: py-b8f575aa23-nopartial, bug-dab7fd5973
12:45 • New ticket [dab7fd5973] Memory leak in commit [0a74820b6d]. artifact: 1ec15bef08 user: jan.nijtmans

Memory leak in commit [0a74820b6d]

Closed / Fixeddab7fd597345b05d663195460dc33e215b09f48bCreated 4 years agoUpdated 4 years ago
Descriptionwiki2023-02-05 12:45:34
Starting with [this] commit, there's a memory-leak in tclIOCmd.c. Tcl 8.6 and 9.0 are OK.
Referenced by4
pooryorickwiki2023-02-05 19:08:24

After I commented out those lines in that block, I should have added a new line to decrement the reference count. Thank you for catching it :)

pooryorickwiki2023-02-14 10:48:01

See issue [b8f575aa2398b0e4], for fix.

pooryorick Closed ticket [dab7fd5973]. [History diff]2023-02-18 01:17:55
jan.nijtmanswiki2023-02-23 21:22:28

This memory leak is still present in the tip-656 branch.

Proposed fix: [ff7923a914012c65]

apnadkarniplain2023-02-24 02:35:23
Will take a look.

I'm a bit surprised though. Since I later merged core-8-branch again, should not the latest core-8-branch code (with the fix) have "undone" that previous merge that introduced the memory leak?

/Ashok
apnadkarnimarkdown2023-02-24 03:05:55

I've picked your proposed fix which should bring it in sync with the core-8-branch. I'm still a bit puzzled why my previous merge from core-8-branch did not pick up the change. I suppose it's because the "bouncing" of core-8-branch commits made it lose track?

Thanks for picking up on this. I would not have noticed.

/Ashok

pooryorickwiki2023-02-24 14:07:21

apn, your branch didn't receive the fix because after I merged it into core-8-branch, Jan backed it out again.

jan.nijtmanswiki2023-02-26 21:51:43

> I'm still a bit puzzled why my previous merge from core-8-branch did not pick up the change

That's because fossil is not always smart enough to determine what the 'pivot' of the merge should be. This is one of the corner-cases, not worth to discuss here.

Log in (anonymous is fine) to add a comment.