Copy Hyervisor type returnd by virConnectGetType.

virConnectClose free the memory returned by virConnectGetType.