]> xenbits.xensource.com Git - people/vhanquez/xen-unstable.git/commitdiff
xl: correct test for domid on error exit from domain_create
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 13 Jan 2011 01:26:44 +0000 (01:26 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 13 Jan 2011 01:26:44 +0000 (01:26 +0000)
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>
tools/libxl/xl_cmdimpl.c

index d29d661a0fc139a9afe91cc2afe249c21aefde0f..d1b9f14fe46344dcb5dba1147adfcf7166960ffd 100644 (file)
@@ -1627,7 +1627,7 @@ start:
 
 error_out:
     release_lock();
-    if (domid)
+    if (domid > 0)
         libxl_domain_destroy(&ctx, domid, 0);
 
 out: