From: Ian Jackson Subject: Re: [PATCH v4 2/2] tools/libxl: Improvements to libxl-save-helper when using valgrind Date: Fri, 11 Apr 2014 16:57:07 +0100 Message-ID: <21320.4307.140484.747200@mariner.uk.xensource.com> References: <1397231174-9705-1-git-send-email-andrew.cooper3@citrix.com> <1397231174-9705-2-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1397231174-9705-2-git-send-email-andrew.cooper3@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: Andrew Cooper Cc: Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org 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