summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJosh F <josh@vector35.com>2022-08-18 14:33:15 -0400
committerJosh F <josh@vector35.com>2022-08-18 14:33:15 -0400
commit6b55b281854a64e963ae33b4d5dc92b500bfb1a8 (patch)
treec443ffebe41157e3ea2c2efc688a4f50c81decd4 /python
parentf2dc9536d3638b5c61c9828a7fbe88af56f26962 (diff)
Fix trying to delete incomplete LowLevelILFunction
Diffstat (limited to 'python')
-rw-r--r--python/lowlevelil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index 74b9e104..dbdd09e9 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -2676,7 +2676,7 @@ class LowLevelILFunction:
assert self._arch is not None
def __del__(self):
- if core is not None:
+ if core is not None and hasattr(self, 'handle'):
core.BNFreeLowLevelILFunction(self.handle)
def __repr__(self):