[libvirt] [PATCH] Convert a few stray users of free() in libvirt.c to VIR_FREE().

Chris Lalancette clalance at redhat.com
Fri Jul 31 13:19:54 UTC 2009


Signed-off-by: Chris Lalancette <clalance at redhat.com>
---
 src/libvirt.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libvirt.c b/src/libvirt.c
index 167359f..9fd864d 100644
--- a/src/libvirt.c
+++ b/src/libvirt.c
@@ -3020,7 +3020,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,
@@ -3062,8 +3062,8 @@ virDomainMigrate (virDomainPtr domain,
     }
 
  done:
-    free (uri_out);
-    free (cookie);
+    VIR_FREE (uri_out);
+    VIR_FREE (cookie);
     return ddomain;
 
 error:
-- 
1.6.0.6




More information about the libvir-list mailing list