mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
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:
parent
89060bd90e
commit
3bd46c8174
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user