]> xenbits.xensource.com Git - libvirt.git/commitdiff
Call xenDeamonClose if ping test fails during open call, to ensure any resources...
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 13 Jun 2006 13:45:09 +0000 (13:45 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 13 Jun 2006 13:45:09 +0000 (13:45 +0000)
src/xend_internal.c

index 37e5934f1b4d7e75dd4df395c4d71a3f07aba8f4..33f3ff41d1d2ac82fe56f207156125284826de28 100644 (file)
@@ -1673,6 +1673,7 @@ xenDaemonOpen(virConnectPtr conn, const char *name, int flags)
     /* A sort of "ping" to make sure the daemon is actually
        alive & well, rather than just assuming it is */
     if ((ret = xenDaemonGetVersion(conn, &version)) < 0) {
+      xenDaemonClose(conn);
       return ret;
     }