diff options
author | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2011-01-13 01:26:44 +0000 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2011-01-13 01:26:44 +0000 |
commit | 6e7334338f0e3d89ec9d4bf00c77f0d424db22a0 (patch) | |
tree | e8880e1279e52758a76adb5e26bfb7e66b078fe2 | |
parent | 8636567f45f2ec20574afb41df26ce3bb719fdd5 (diff) | |
download | xen-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.c | 2 |
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: |