pyvmdk_handle_set_parent(...) does not reference pyvmdk_parent_handle, and python gc can relese pyvmdk_parent_handle while it is parent of a vmdk handle.
in this case:
pyvmdk_parent_handle->handle is set as parent of a vmdk handle in libvmdk_handle_set_parent_handle(...), but pyvmdk_parent_handle not being referenced.
pyvmdk_parent_handle is released by gc, and its handle will be closed.
But we can access parent vmdk with the child vmdk handle.
pyvmdk_handle_set_parent(...) does not reference pyvmdk_parent_handle, and python gc can relese pyvmdk_parent_handle while it is parent of a vmdk handle.
in this case: