diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index df7558b9c0..6ad86c56fd 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -910,6 +910,10 @@ doRemoteOpen(virConnectPtr conn, virNetClientClose(priv->client); virObjectUnref(priv->client); priv->client = NULL; +#ifdef WITH_GNUTLS + virObjectUnref(priv->tls); + priv->tls = NULL; +#endif VIR_FREE(priv->hostname); goto cleanup;