diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-07-07 08:26:29 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-05 10:09:09 -0400 |
| commit | 764063b2b44dbeba5f2f318c971e4f4acfb48427 (patch) | |
| tree | e014fe6a859b97a653cef80dc9db66a06c706c37 /python/basicblock.py | |
| parent | d376db916f5fc83f9e654edf23364d200839ac50 (diff) | |
Refactor Python Types
Remove _mutable types
Diffstat (limited to 'python/basicblock.py')
| -rw-r--r-- | python/basicblock.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/basicblock.py b/python/basicblock.py index 4aca6de5..47021e66 100644 --- a/python/basicblock.py +++ b/python/basicblock.py @@ -59,7 +59,8 @@ class BasicBlock: self._instLengths:Optional[List[int]] = None def __del__(self): - core.BNFreeBasicBlock(self.handle) + if core is not None: + core.BNFreeBasicBlock(self.handle) def __repr__(self): arch = self.arch |
