[libvirt] [PATCH 3/9] conf: Refactor resource cleanup in virDomainDeviceDefParse