Memory leak in commit [0a74820b6d]
ff7923a914Remove left-over traces of [0a74820b6d], which was merged into the apn-encoding-profile and landed into tip-656. This commit was merged premature into core-8-branch, leaving a [dab7fd5973|memory leak] check-in2023-02-23 21:20:21b0e432ff04Ticket [b8f575aa23] Tcl 9: eof erroneously flagged with not reported encoding read error status still Pending with 3 other changes ticket2023-02-14 10:46:223d64a2569bfix for [dab7fd5973]: Memory leak in commit [0a74820b6d]. check-in2023-02-14 10:28:229a22ed79edProposed fix for [dab7fd5973]: Memory leak in commit [0a74820b6d] check-in2023-02-05 12:49:40
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 :)
See issue [b8f575aa2398b0e4], for fix.
This memory leak is still present in the tip-656 branch.
Proposed fix: [ff7923a914012c65]
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
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
apn, your branch didn't receive the fix because after I merged it into core-8-branch, Jan backed it out again.
> 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.