[libvirt] [PATCHv2 1/8] rpc: avoid memory leak on error