From: Gianni Tedesco Subject: Re: [PATCH 0 of 3] libxl: memory leaks Date: Mon, 2 Aug 2010 14:11:43 +0100 Message-ID: <1280754703.18490.65.camel@qabil.uk.xensource.com> References: 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: Ian Campbell Cc: Ian, Campbell , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2010-08-02 at 13:31 +0100, Ian Campbell wrote: > The following fix a few memory leaks. > > The first was discussed on list and it was decided that although it > wasn't a real leak, since the memory is allocated exactly once per > thread and is correctly cleaned up on pthread_exit(), it was still > useful for xl (a non-threaded application) to be able to be completely > valgrind clean for the purposes of auditing libxl. > > The leaks fixed in xl create are just a subset since I didn't delve > into recursively freeing the types defined by libxl yet. There are > also leaks in the lexer and parser which I didn't tackle yet. These patches are all good news. You should be aware (if not already) that we have a plan for dealing with the majority of remaining leaks, I was going to implement it after my current PCI work. So if you are going to go all the way with this we should talk... :) Thanks