remote: Resolve Coverity RESOURCE_LEAK

Need to free 'uri_out' on error path.

Signed-off-by: Wang Rui <moon.wangrui@huawei.com>
This commit is contained in:
Wang Rui 2014-09-01 20:08:05 +08:00 committed by John Ferlan
parent 89060bd90e
commit 3bd46c8174

View File

@ -2305,8 +2305,10 @@ remoteDispatchDomainMigratePrepare2(virNetServerPtr server ATTRIBUTE_UNUSED,
rv = 0;
cleanup:
if (rv < 0)
if (rv < 0) {
virNetMessageSaveError(rerr);
VIR_FREE(uri_out);
}
return rv;
}