Re: [xml] [patch] missing calls to node tracker



On Mon, Jan 06, 2003 at 05:12:20AM -0500, Daniel Veillard wrote:
On Mon, Jan 06, 2003 at 09:38:38AM +0100, Lukas Schroeder wrote:
to non-libxml2-developers; even for libxml2-developers its only useful
if xmllint is run through valgrind to find memory leaks that might have
to do with the node tracking api.

  Honnestly I do check for mem leaks, and configuring with --with-mem-debug
does a far more thorough job than the registration check. It also spot
immediately if you made the mistake of using free() or malloc() instead of
xmlFree() and xmlMalloc() !

correct. what i tried to say is that --chkregister is used to debug the
node-tracker. the memory allocated by the application to track a node is
nothing --with-mem-debug will reveal (or does it?). e.g. if registerNode is
called more often than deregisterNode we have an application-level
memory leak that we can find by using 'valgrind xmllint --chkregister'

--chkregister should only be used for debuggging the node-tracker.
libxml2 has other far more advanced interfaces for debugging its core.  


-lukas




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]