From: Ian Campbell Subject: Re: libvirt libxl driver leaking libxl_event's? Date: Thu, 11 Apr 2013 14:09:24 +0100 Message-ID: <1365685764.8036.125.camel@zakaz.uk.xensource.com> References: <1365684384.8036.104.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1365684384.8036.104.camel@zakaz.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: Jim Fehlig Cc: Ian Jackson , "libvirt-list@redhat.com" , xen-devel List-Id: xen-devel@lists.xenproject.org On Thu, 2013-04-11 at 13:46 +0100, Ian Campbell wrote: > Hi Jim, > > I don't see any calls to libxl_event_dispose in libvirt.git, actually I think I meant libxl_event_free, but I can't see that either. > libxl_event.h says in relation to the event_occurs callback: > * event becomes owned by the application and must be freed, either > * by event_occurs or later. > so does this mean the memory referenced by event is leaked by > libxlEventHandler? > > libxl_event only contains dynamic allocations for > LIBXL_EVENT_TYPE_DISK_EJECT which you don't seem to register for so the > issue is probably benign but worth noting I think. > > Ian. > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel