mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +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
|
||||
(dconn, &cookie, &cookielen, uri, &uri_out, flags, dname,
|
||||
bandwidth, dom_xml);
|
||||
free (dom_xml);
|
||||
VIR_FREE (dom_xml);
|
||||
if (ret == -1) goto done;
|
||||
if (uri == NULL && uri_out == NULL) {
|
||||
virLibConnError (conn, VIR_ERR_INTERNAL_ERROR,
|
||||
@ -3058,8 +3058,8 @@ virDomainMigrate (virDomainPtr domain,
|
||||
}
|
||||
|
||||
done:
|
||||
free (uri_out);
|
||||
free (cookie);
|
||||
VIR_FREE (uri_out);
|
||||
VIR_FREE (cookie);
|
||||
return ddomain;
|
||||
|
||||
error:
|
||||
|
Loading…
Reference in New Issue
Block a user