Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.