| Index: Source/core/xml/parser/XMLDocumentParser.cpp
|
| diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp
|
| index f0d757b62858eb550d2465c9b71524ecbc9c66d9..61a29050d147e6ad822b119c7f7c9ffdac3c2411 100644
|
| --- a/Source/core/xml/parser/XMLDocumentParser.cpp
|
| +++ b/Source/core/xml/parser/XMLDocumentParser.cpp
|
| @@ -1103,28 +1103,15 @@ void XMLDocumentParser::error(XMLErrors::ErrorType type, const char* message, va
|
| if (isStopped())
|
| return;
|
|
|
| -#if HAVE(VASPRINTF)
|
| - char* formattedMessage;
|
| - if (vasprintf(&formattedMessage, message, args) == -1)
|
| - return;
|
| -#else
|
| char formattedMessage[1024];
|
| vsnprintf(formattedMessage, sizeof(formattedMessage) - 1, message, args);
|
| -#endif
|
|
|
| if (m_parserPaused) {
|
| m_pendingCallbacks.append(adoptPtr(new PendingErrorCallback(type, reinterpret_cast<const xmlChar*>(formattedMessage), lineNumber(), columnNumber())));
|
| -#if HAVE(VASPRINTF)
|
| - free(formattedMessage);
|
| -#endif
|
| return;
|
| }
|
|
|
| handleError(type, formattedMessage, textPosition());
|
| -
|
| -#if HAVE(VASPRINTF)
|
| - free(formattedMessage);
|
| -#endif
|
| }
|
|
|
| void XMLDocumentParser::processingInstruction(const String& target, const String& data)
|
|
|