From: Jiri Denemark Subject: Re: [PATCH] Fix memory leaks in libxc python bindings Date: Tue, 29 Sep 2009 21:18:45 +0200 Message-ID: <20090929191845.GA8698@orkuz.home> References: <20090929165409.GA27604@orkuz.home> <20090929170057.GA20978@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20090929170057.GA20978@phenom.dumpdata.com> 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 List-Id: xen-devel@lists.xenproject.org > > Reference counters are not correctly decreased for python object in sev= eral >=20 > I am curious how did you find this? Is there a python 'valgrind' that > can help track this? Or is there a python flag to be report such abnormal= ities? None that I know of. I just used the source code. I found it because long running xend managed by libvirt was consuming increasing amount of memory. =46rom the only repeatedly executed command virsh list I got to xm info and xc_physinfo(). And then I just looked for all other calls to PyDict_* and PyList_Append and fixed them. Jirka