From: Ian Campbell Subject: Re: [PATCH v4 2/2] tools/libxl: Improvements to libxl-save-helper when using valgrind Date: Wed, 16 Apr 2014 17:31:31 +0100 Message-ID: <1397665891.24638.245.camel@kazak.uk.xensource.com> References: <1397231174-9705-1-git-send-email-andrew.cooper3@citrix.com> <1397231174-9705-2-git-send-email-andrew.cooper3@citrix.com> <21320.4307.140484.747200@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21320.4307.140484.747200@mariner.uk.xensource.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: Ian Jackson Cc: Andrew Cooper , Xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, 2014-04-11 at 16:57 +0100, Ian Jackson wrote: > Andrew Cooper writes ("[PATCH v4 2/2] tools/libxl: Improvements to libxl-save-helper when using valgrind"): > > Fix two unfree()'d allocations in libxl-save-helper, to get them out of the > > way of other legitimate complaints from valgrind. > > > > The first is easy; close the interface to libxc when done with it. > > > > The second can be fixed by removing the complexity of creating the logging > > instance. Initialise the global 'logger' in place rather than as an > > allocation, which requires changing the indirection of its use in 5 locations. > > > > struct xentoollog_logger_tellparent and function createlogger_tellparent() are > > now unused and removed. > > Great, thanks. > > Acked-by: Ian Jackson APplied both.