From: Christophe de V. <cde...@al...> - 2003-04-23 17:03:46
|
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le Mercredi 23 Avril 2003 18:04, thierry a =E9crit : > I have encountered a memory leak (not signalized by Purify) in the class > SaxParser. in the function parse() : > > "_context->sax =3D & _sax_handler; > > [..] > > release_underlying();" > > is not valid. structure allocated in xmlCreateMemoryParserCtxt for the sax > handler is never released due to > > "_context->sax =3D 0 " in release_underlying(). > Thanks for reporting this problem. In fact the good solution is probably to use xmlSAXUserParseFile and=20 xmlSAXUserParseMemory to create the contexts, and not=20 xmlCreateMemoryParserCtxt and xmlCreateFileParserCtxt which are to be used= =20 only for DOM. I'll commit a patch by the evening. Best regards, Christophe =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+psdLB+sU3TyOQjARAkp2AJ9gnVSX/K/WP8R/SVH2y7YHRot7fwCgt5rY 7oTxeM09/oC9XgOpsHrTt00=3D =3Dko17 =2D----END PGP SIGNATURE----- |