From d9bfbfa949d8b1a28c53b37116c52728863693b7 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 13 Jun 2006 13:45:09 +0000 Subject: [PATCH] Call xenDeamonClose if ping test fails during open call, to ensure any resources are freed up --- src/xend_internal.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.5