(ptr)
Calls the finalizer for the specified pointer to free allocated memory.
Calls the finalizer for the specified pointer to free allocated memory.
Calls the finalizer for the specified pointer to free allocated memory .
def _finalize(ptr):
  """Calls the finalizer for the specified pointer to free allocated memory."""
  address = ctypes.addressof(ptr.contents)
  try:
    ptr_ref, callback = _FINALIZERS[address]
    callback(ptr_ref)
  except KeyError:
    pass
def _finalize ( ptr ) : address = ctypes . addressof ( ptr . contents ) try : ptr_ref , callback = _FINALIZERS [ address ] callback ( ptr_ref ) except KeyError : pass