erocarrera / pefile

pefile is a Python module to read and work with PE (Portable Executable) files
MIT License
1.88k stars 522 forks source link

Close the __data__ attribute before reassigning it #367

Closed adang1345 closed 1 year ago

adang1345 commented 1 year ago

This fixes #356 where calling generate_checksum() or set_data_bytes() will leave behind a lock on the PE file if we're running PyPy.

erocarrera commented 1 year ago

Thank you!