Re: [xslt] XSLT memory leak - GIT 2011-02-28 01:54:15, 7f741527832
- From: Daniel Veillard <veillard redhat com>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] XSLT memory leak - GIT 2011-02-28 01:54:15, 7f741527832
- Date: Mon, 7 Mar 2011 12:25:24 +0800
On Sun, Mar 06, 2011 at 11:30:49PM +0100, Ralf Junker wrote:
> Attached files cause a memory leak in xsltproc if passed like this:
>
> xsltproc Tutorial.xsl Tutorial.xml
>
> The leak happens in the library and was discovered outside xsltproc.
>
> The attached Tutorial_Leak.log contains the stack trace leading to the leak.
>
> I am sorry I do not provide a fix, but the leak is deeply nested and I
> was not able to find the section where the memory should be freed. I am
> compiling without XSLT_REFACTORED if that matters.
>
> Can someone confirm this? Or even suggest a fix?
Confirmed here, valgrind was clear about it, I just commited a fix for
it adding your example to the regression tests. I believe any libxslt
compiled without XSLT_REFACTORED leacked this for xsl:number.
I also reran "make valgrind" and it seems fine now...
BTW your libxnlt is compiled with memory debug in the logs, not sure
you want that setup all the time :-)
thanks !
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]