[PATCH] daemon: Don't try to free an unsigned int in error paths

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

 



---
 daemon/remote.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/daemon/remote.c b/daemon/remote.c
index 54fef64..1c98bba 100644
--- a/daemon/remote.c
+++ b/daemon/remote.c
@@ -3681,7 +3681,7 @@ remoteDispatchListNetworks(struct qemud_server *server ATTRIBUTE_UNUSED,
 cleanup:
     if (rv < 0) {
         remoteDispatchError(rerr);
-        VIR_FREE(ret->names.names_len);
+        VIR_FREE(ret->names.names_val);
     }
     return rv;
 }
@@ -4200,7 +4200,7 @@ remoteDispatchListInterfaces(struct qemud_server *server ATTRIBUTE_UNUSED,
 cleanup:
     if (rv < 0) {
         remoteDispatchError(rerr);
-        VIR_FREE(ret->names.names_len);
+        VIR_FREE(ret->names.names_val);
     }
     return rv;
 }
@@ -4275,7 +4275,7 @@ remoteDispatchListDefinedInterfaces(struct qemud_server *server ATTRIBUTE_UNUSED
 cleanup:
     if (rv < 0) {
         remoteDispatchError(rerr);
-        VIR_FREE(ret->names.names_len);
+        VIR_FREE(ret->names.names_val);
     }
     return rv;
 }
@@ -8544,7 +8544,7 @@ remoteDispatchListNwfilters(struct qemud_server *server ATTRIBUTE_UNUSED,
 cleanup:
     if (rv < 0) {
         remoteDispatchError(rerr);
-        VIR_FREE(ret->names.names_len);
+        VIR_FREE(ret->names.names_val);
     }
     return rv;
 }
-- 
1.7.0.4

--
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]