Index: Source/core/xml/parser/XMLDocumentParser.cpp |
diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp |
index fb98d8f1fdfaa677275dfc7b720eeaf756c755cd..34cd18877cede843e6358f7102b6118c71e95412 100644 |
--- a/Source/core/xml/parser/XMLDocumentParser.cpp |
+++ b/Source/core/xml/parser/XMLDocumentParser.cpp |
@@ -1087,6 +1087,9 @@ void XMLDocumentParser::error(XMLErrors::ErrorType type, const char* message, va |
if (m_parserPaused) { |
m_pendingCallbacks.append(adoptPtr(new PendingErrorCallback(type, reinterpret_cast<const xmlChar*>(formattedMessage), lineNumber(), columnNumber()))); |
+#if HAVE(VASPRINTF) |
+ free(formattedMessage); |
+#endif |
return; |
} |