From: Ian Jackson Subject: Re: [PATCH] xl: save domain config (userdata) under correct domid/uuid Date: Thu, 13 Jan 2011 01:28:08 +0000 Message-ID: <19758.21800.674691.635596@mariner.uk.xensource.com> References: <19758.17728.154557.537487@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19758.17728.154557.537487@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I wrote: > I think this is fixed by the patch below, which I have just applied. Um, but, I missed a bit. # HG changeset patch # User Ian Jackson # Date 1294882004 0 # Node ID ce208811f5401dcc6dc39a1e592b102e8d3e7c85 # Parent d839631b604807fe0f978f9eacc1c73f6a9bf0bd 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 diff -r d839631b6048 -r ce208811f540 tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Thu Jan 13 00:18:35 2011 +0000 +++ b/tools/libxl/xl_cmdimpl.c Thu Jan 13 01:26:44 2011 +0000 @@ -1627,7 +1627,7 @@ start: error_out: release_lock(); - if (domid) + if (domid > 0) libxl_domain_destroy(&ctx, domid, 0); out: