mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 23:25:24 +00:00
Convert a few stray users of free() in libvirt.c to VIR_FREE().
Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
180ca598c4
commit
08cb0b3cfc
@ -3016,7 +3016,7 @@ virDomainMigrate (virDomainPtr domain,
|
|||||||
ret = dconn->driver->domainMigratePrepare2
|
ret = dconn->driver->domainMigratePrepare2
|
||||||
(dconn, &cookie, &cookielen, uri, &uri_out, flags, dname,
|
(dconn, &cookie, &cookielen, uri, &uri_out, flags, dname,
|
||||||
bandwidth, dom_xml);
|
bandwidth, dom_xml);
|
||||||
free (dom_xml);
|
VIR_FREE (dom_xml);
|
||||||
if (ret == -1) goto done;
|
if (ret == -1) goto done;
|
||||||
if (uri == NULL && uri_out == NULL) {
|
if (uri == NULL && uri_out == NULL) {
|
||||||
virLibConnError (conn, VIR_ERR_INTERNAL_ERROR,
|
virLibConnError (conn, VIR_ERR_INTERNAL_ERROR,
|
||||||
@ -3058,8 +3058,8 @@ virDomainMigrate (virDomainPtr domain,
|
|||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
free (uri_out);
|
VIR_FREE (uri_out);
|
||||||
free (cookie);
|
VIR_FREE (cookie);
|
||||||
return ddomain;
|
return ddomain;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
Loading…
Reference in New Issue
Block a user