提交 697a2e5b 编写于 作者: G Goldfish64

OcXmlLib: Free original buffer on failure

上级 2bbf6a46
......@@ -1181,6 +1181,7 @@ XmlDocumentExport (
NewBuffer = AllocatePool (NewSize);
if (NewBuffer == NULL) {
FreePool (Buffer);
XML_USAGE_ERROR ("XmlDocumentExport::failed to allocate");
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册