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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Chris Lalancette <clalance@xxxxxxxxxx>
---
 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

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]