Re: [xml] xml memory mutex memory leak



Dave Beckett said:
This trival program leaks the mutex allocated by xmlInitMemory
in 2.6.3 / CVS head.

cat > t.c
main() {
  xmlInitParser();
  xmlCleanupParser();
}
   <snip>
(and similarly with CVS head compiled)

The cause was the change in CVS 1.46 of xmlmemory.c
  * xmlmemory.c: enhanced by adding mutex to protect global
    structures in a multi-threading environment.  This fixed
    some random errors on the Threads regression tests.

which didn't add a dealloc routine.

Patch to fix attached.

Dave

You caught me that time!  My mistake - thanks for the fix, it's now
applied in CVS.

Bill



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