summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
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):