In xmlAllocOutputBuffer, xmlBuffer allocated is leaked at Line 2387. At Line 2372, ret->buffer = xmlBufCreate(); AddxmlBufFree(ret->buffer); at Line 2386 to fix it.
ret->buffer = xmlBufCreate();
xmlBufFree(ret->buffer);