Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _close(self):
"""Cleanup resources."""
if self.__ctx is None:
return
lib.mongocrypt_ctx_destroy(self.__ctx)
self.__ctx = None