From: Ian Jackson Subject: Re: [PATCH 1/2] libxl_json: Use libxl alloc function Date: Fri, 28 Sep 2012 18:22:01 +0100 Message-ID: <20581.56505.946303.990641@mariner.uk.xensource.com> References: <1348666294-18182-1-git-send-email-anthony.perard@citrix.com> <1348666294-18182-2-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1348666294-18182-2-git-send-email-anthony.perard@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: Anthony PERARD Cc: Ian Jackson , Ian Campbell , Xen Devel List-Id: xen-devel@lists.xenproject.org Anthony PERARD writes ("[Xen-devel] [PATCH 1/2] libxl_json: Use libxl alloc function"): > This patch makes use of the libxl allocation API and removes the check for > allocation failure. > > This patch also assume that flexarray does not need to be freed as it will be > gc'd in the next patch. Is this really the right way to structure this series ? It seems that after applying only the first, the code has a memory leak. Ian.