From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 0 of 3] libxl: memory leaks Date: Mon, 02 Aug 2010 13:31:10 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org 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.