Index: libvirt-3.10.0/src/rpc/virnetserver.c =================================================================== --- libvirt-3.10.0.orig/src/rpc/virnetserver.c +++ libvirt-3.10.0/src/rpc/virnetserver.c @@ -775,7 +775,6 @@ void virNetServerDispose(void *obj) VIR_FREE(srv->programs); for (i = 0; i < srv->nclients; i++) { - virNetServerClientClose(srv->clients[i]); virObjectUnref(srv->clients[i]); } VIR_FREE(srv->clients); @@ -796,6 +795,9 @@ void virNetServerClose(virNetServerPtr s for (i = 0; i < srv->nservices; i++) virNetServerServiceClose(srv->services[i]); + for (i = 0; i < srv->nclients; i++) + virNetServerClientClose(srv->clients[i]); + virObjectUnlock(srv); }