From 5a1f98b0e46d0077f777cb90e7d9d916c9186535 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 6 Sep 2021 11:38:59 -0400 Subject: Fix some unnecessary checks for handle is not None in destructors --- python/callingconvention.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/callingconvention.py') diff --git a/python/callingconvention.py b/python/callingconvention.py index 5b816e20..ff3e8ff6 100644 --- a/python/callingconvention.py +++ b/python/callingconvention.py @@ -166,7 +166,7 @@ class CallingConvention: self.confidence = confidence def __del__(self): - if self.handle is not None: + if core is not None: core.BNFreeCallingConvention(self.handle) def __repr__(self): -- cgit v1.3.1