in src/h3/_cy/memory.pyx [0:0]
def __dealloc__(self):
# If the memory has been handed off to a memoryview, this pointer
# should be NULL, and deallocing on NULL is fine.
# If the pointer is *not* NULL, then this means the MemoryManager
# has is still responsible for the memory (it hasn't given the memory away to another object).
h3_free(self.ptr)