aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Jackson <Ian.Jackson@eu.citrix.com>2011-01-13 01:26:44 +0000
committerIan Jackson <Ian.Jackson@eu.citrix.com>2011-01-13 01:26:44 +0000
commit6e7334338f0e3d89ec9d4bf00c77f0d424db22a0 (patch)
treee8880e1279e52758a76adb5e26bfb7e66b078fe2
parent8636567f45f2ec20574afb41df26ce3bb719fdd5 (diff)
downloadxen-6e7334338f0e3d89ec9d4bf00c77f0d424db22a0.tar.gz
xen-6e7334338f0e3d89ec9d4bf00c77f0d424db22a0.tar.bz2
xen-6e7334338f0e3d89ec9d4bf00c77f0d424db22a0.zip
xl: correct test for domid on error exit from domain_create
The previous changeset 22739:d839631b6048 changed the initialisation of domid without changing the corresponding cleanup test. Oops. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r--tools/libxl/xl_cmdimpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index d29d661a0f..d1b9f14fe4 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -1627,7 +1627,7 @@ start:
error_out:
release_lock();
- if (domid)
+ if (domid > 0)
libxl_domain_destroy(&ctx, domid, 0);
out: