Commit 87144e0
Add __del__ method to MMIndexedTar for proper resource cleanup
Added a __del__ method to the MMIndexedTar class to ensure memory-mapped files
and file streams are properly closed when instances are garbage collected.
This prevents potential resource leaks when clients don't explicitly call close().
The implementation includes error handling for partially initialized objects or
already closed resources.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent edb5d76 commit 87144e0
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
0 commit comments