summaryrefslogtreecommitdiff
path: root/daemon/remote.c
diff options
context:
space:
mode:
authorJohn Ferlan <jferlan@redhat.com>2014-11-30 12:07:19 -0500
committerJohn Ferlan <jferlan@redhat.com>2014-12-02 11:03:41 -0500
commitc56a591a849be41f9e7966c7e97973ffdc6940e9 (patch)
tree951731b391ec05fe9bc1d3062238e1eb6df83d71 /daemon/remote.c
parent7b4938f5241b0a68dcbbe606471382f3e93ddbe4 (diff)
downloadlibvirt-c56a591a849be41f9e7966c7e97973ffdc6940e9.tar.gz
Replace virInterfaceFree with virObjectUnref
Since virInterfaceFree will call virObjectUnref anyway, let's just use that directly so as to avoid the possibility that we inadvertently clear out a pending error message when using the public API.
Diffstat (limited to 'daemon/remote.c')
-rw-r--r--daemon/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/remote.c b/daemon/remote.c
index dc004243ba..3e4dc1ff35 100644
--- a/daemon/remote.c
+++ b/daemon/remote.c
@@ -4846,7 +4846,7 @@ remoteDispatchConnectListAllInterfaces(virNetServerPtr server ATTRIBUTE_UNUSED,
virNetMessageSaveError(rerr);
if (ifaces && nifaces > 0) {
for (i = 0; i < nifaces; i++)
- virInterfaceFree(ifaces[i]);
+ virObjectUnref(ifaces[i]);
VIR_FREE(ifaces);
}
return rv;