Skip to content

Commit

Permalink
Close ELF file in destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ptr-yudai committed Feb 15, 2024
1 parent 73bd5c0 commit 4759101
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ptrlib/filestruct/elf/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,6 @@ def _identify(self):
self.little_endian = True

return True

def __del__(self):
self.stream.close()

0 comments on commit 4759101

Please sign in to comment.