matiasb / python-unrar

A ctypes wrapper for UnRAR library, plus a rarfile module on top of it.
http://python-unrar.readthedocs.org/en/latest/
GNU General Public License v3.0
74 stars 30 forks source link

Avoid memory leaks when an error occurs #29

Closed Ex3n0n closed 2 years ago

Ex3n0n commented 2 years ago

Hi,

I'm programming bruteforce password tester on rar file with your wrapper + lib. Since I try and retry multiple password, I was able to detect some memory leaks (10GB / 2h). Here is a patch :)

Thank's for your work !

matiasb commented 2 years ago

Makes sense, thanks! :+1: