From 6b55b281854a64e963ae33b4d5dc92b500bfb1a8 Mon Sep 17 00:00:00 2001 From: Josh F Date: Thu, 18 Aug 2022 14:33:15 -0400 Subject: Fix trying to delete incomplete LowLevelILFunction --- python/lowlevelil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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): -- cgit v1.3.1