From: Ian Jackson Subject: Re: [PATCH] tools: libxl: free devpath on failure in libxl__blktap_devpath Date: Tue, 16 Feb 2016 17:37:49 +0000 Message-ID: <22211.24173.263554.210503@mariner.uk.xensource.com> References: <1455620983-3109-1-git-send-email-ian.campbell@citrix.com> <20160216123122.GK10489@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160216123122.GK10489@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Wei Liu writes ("Re: [PATCH] tools: libxl: free devpath on failure in libxl__blktap_devpath"): > On Tue, Feb 16, 2016 at 11:09:43AM +0000, Ian Campbell wrote: > > The underlying code paths in tap_ctl_create attempt to handle both > > *devpath == NULL (by allocating) and *devpath != NULL (caller provided > > name) and if they allocate tend to write the return immediately before > > doing other potentially error generating tasks. All of which makes > > handling this at a lower level rather more complicated than handling > > it in the error path of libxl__bllktap_devpath. Committed-by: Ian Jackson > Extraneous "l" in the function name. Fixed this. Thanks, Ian.