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:
Chris Lalancette 2009-07-30 16:43:34 +02:00
parent 180ca598c4
commit 08cb0b3cfc

View File

@ -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: