From: Ian Campbell Subject: Re: Re: [PATCH v2] xen_console: support the new extended xenstore protocol Date: Tue, 28 Jun 2011 16:06:22 +0100 Message-ID: <1309273582.32717.323.camel@zakaz.uk.xensource.com> References: <1309272956-6221-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Peter Maydell Cc: Anthony Perard , "agraf@suse.de" , "xen-devel@lists.xensource.com" , "qemu-devel@nongnu.org" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Tue, 2011-06-28 at 16:02 +0100, Peter Maydell wrote: > On 28 June 2011 15:55, wrote: > > + xs = xs_daemon_open(); > > + if (xs == NULL) { > > + fprintf(stderr, "Could not contact XenStore\n"); > > + goto out; > > + } > > > +out: > > + free(path); > > + xs_daemon_close(xs); > > Google suggests xs_daemon_close(NULL) will crash... Also the preferred interface these days is just xs_open/close. The other variants are deprecated. Ian.