From: Daniel P. Berrange Date: Tue, 13 Jun 2006 13:45:09 +0000 (+0000) Subject: Call xenDeamonClose if ping test fails during open call, to ensure any resources... X-Git-Tag: LIBVIRT_0_1_1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9bfbfa949d8b1a28c53b37116c52728863693b7;p=thirdparty%2Flibvirt.git Call xenDeamonClose if ping test fails during open call, to ensure any resources are freed up --- diff --git a/src/xend_internal.c b/src/xend_internal.c index 37e5934f1b..33f3ff41d1 100644 --- a/src/xend_internal.c +++ b/src/xend_internal.c @@ -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; }