diff -u -p -r1.52 qemud.c --- qemud/qemud.c 26 Jun 2007 23:48:47 -0000 1.52 +++ qemud/qemud.c 11 Jul 2007 23:37:10 -0000 @@ -1023,6 +1036,9 @@ static void qemudDispatchClientFailure(s virEventRemoveHandleImpl(client->fd); + if (client->conn) + virConnectClose(client->conn); + if (client->tls && client->session) gnutls_deinit (client->session); close(client->fd); free(client);