debuggers.hg

changeset 22786:ce208811f540

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>
author Ian Jackson <Ian.Jackson@eu.citrix.com>
date Thu Jan 13 01:26:44 2011 +0000 (2011-01-13)
parents d839631b6048
children 2a60be40e2cb
files tools/libxl/xl_cmdimpl.c
line diff
     1.1 --- a/tools/libxl/xl_cmdimpl.c	Thu Jan 13 00:18:35 2011 +0000
     1.2 +++ b/tools/libxl/xl_cmdimpl.c	Thu Jan 13 01:26:44 2011 +0000
     1.3 @@ -1627,7 +1627,7 @@ start:
     1.4  
     1.5  error_out:
     1.6      release_lock();
     1.7 -    if (domid)
     1.8 +    if (domid > 0)
     1.9          libxl_domain_destroy(&ctx, domid, 0);
    1.10  
    1.11  out: