Commit 4f67dbb0 authored by zhouzhongyuan's avatar zhouzhongyuan Committed by Nick Wellnhofer

fix memory leak in xmlAllocOutputBuffer

parent 1fc410d3
......@@ -2383,6 +2383,7 @@ xmlAllocOutputBuffer(xmlCharEncodingHandlerPtr encoder) {
if (encoder != NULL) {
ret->conv = xmlBufCreateSize(4000);
if (ret->conv == NULL) {
xmlBufFree(ret->buffer);
xmlFree(ret);
return(NULL);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment