mirror of
https://github.com/Leseratte10/acsm-calibre-plugin.git
synced 2024-12-22 09:19:55 +06:00
Ignore exception on free in cpuid.py
This commit is contained in:
parent
e1c8af47eb
commit
cd47dfa229
@ -137,9 +137,12 @@ class CPUID(object):
|
|||||||
elif self.libc:
|
elif self.libc:
|
||||||
# Seems to throw exception when the program ends and
|
# Seems to throw exception when the program ends and
|
||||||
# libc is cleaned up before the object?
|
# libc is cleaned up before the object?
|
||||||
self.libc.free.restype = None
|
try:
|
||||||
self.libc.free.argtypes = [c_void_p]
|
self.libc.free.restype = None
|
||||||
self.libc.free(self.addr)
|
self.libc.free.argtypes = [c_void_p]
|
||||||
|
self.libc.free(self.addr)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
def valid_inputs():
|
def valid_inputs():
|
||||||
|
Loading…
Reference in New Issue
Block a user