From: Ian Campbell Subject: Re: [PATCH 2/5] libxl: strdup disk path before put it in qemu args array. Date: Fri, 10 Dec 2010 09:09:52 +0000 Message-ID: <1291972192.13966.4703.camel@zakaz.uk.xensource.com> References: <1291923777-8712-1-git-send-email-anthony.perard@citrix.com> <1291923777-8712-3-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1291923777-8712-3-git-send-email-anthony.perard@citrix.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: "anthony.perard@citrix.com" Cc: Xen Devel List-Id: xen-devel@lists.xenproject.org On Thu, 2010-12-09 at 19:42 +0000, anthony.perard@citrix.com wrote: > From: Anthony PERARD > > In libxl_build_device_model_args_new, the path to the disk image are > freeed before there was actually use to make the arguments list of Qemu. > The patch strdups it. > --- > tools/libxl/libxl.c | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c > index 0feb93f..0f6e632 100644 > --- a/tools/libxl/libxl.c > +++ b/tools/libxl/libxl.c > @@ -1256,9 +1256,9 @@ static char ** libxl_build_device_model_args_new(libxl__gc *gc, > if (!dm_args) > return NULL; > > - flexarray_set(dm_args, num++, "qemu-system-xen"); > - flexarray_set(dm_args, num++, "-xen-domid"); > + flexarray_set(dm_args, num++, "qemu-dm"); This bit doesn't seem to correspond to the patch description, was the change deliberate or did it slip in by mistake? (my kingdom for flexarray_append(...)) Ian.