Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-10-15
11:13 • Closed ticket [9525f4c8bc]: Memory leak on zipfs with long mount paths plus ... artifact: 1c967551d6 user: apnadkarni
10:33
Fix memory leak [9525f4c8bc] and zipfs path handling [c3364db38a] and others check-in: 492fb812e9 user: apnadkarni tags: core-8-branch
10:12
Fix zipfs long path memory leaks [9525f4c8bc] closed check-in: 2cd497c822 user: apnadkarni tags: apn-zipfs-paths
2023-10-14
07:35 • Ticket [9525f4c8bc] Memory leak on zipfs with long mount paths status still ... artifact: d07c8db716 user: apnadkarni
07:34 • New ticket [9525f4c8bc]. artifact: 5e88b3b995 user: apnadkarni

Memory leak on zipfs with long mount paths

Closed / Fixed9525f4c8bcce2946de2444cee5fe96a17a3b9f34Created 3 years agoUpdated 3 years ago
Descriptionmarkdown2023-10-14 07:34:22

The following script leaks memory

set mt //zipfs:[string repeat /x 240]
zipfs mount ../../tests/zipfiles/test.zip $mt
zipfs unmount $mt

Does not happen with shorter paths (exact crossover point to be determined)

==272087== LEAK SUMMARY:
==272087==    definitely lost: 1,480 bytes in 3 blocks
==272087==    indirectly lost: 0 bytes in 0 blocks
==272087==      possibly lost: 0 bytes in 0 blocks
==272087==    still reachable: 726 bytes in 14 blocks
==272087==         suppressed: 0 bytes in 0 blocks
Referenced by2
apnadkarni Ticket [9525f4c8bc]: 3 changes [History diff]2023-10-14 07:35:09
apnadkarniplain2023-10-15 11:13:30
Fixed as part of refactoring [492fb812e9].
Log in (anonymous is fine) to add a comment.