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.__crypt is None:
return
lib.mongocrypt_destroy(self.__crypt)
self.__crypt = None