Skip to content

Commit e15bf07

Browse files
committed
Null native_object after CTX_free
1 parent 5e77b6c commit e15bf07

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wolfssl/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ def __init__(self, protocol, server_side=None):
179179
def __del__(self):
180180
if getattr(self, 'native_object', None) is not None and self.native_object != _ffi.NULL:
181181
_lib.wolfSSL_CTX_free(self.native_object)
182+
self.native_object = _ffi.NULL
182183

183184
@property
184185
def verify_mode(self):

0 commit comments

Comments
 (0)