fixed virDomainPtr leak in adopt_instances