diff --git a/content/base/src/nsXMLHttpRequest.cpp b/content/base/src/nsXMLHttpRequest.cpp index e3124fa37e6..ad76da336c6 100644 --- a/content/base/src/nsXMLHttpRequest.cpp +++ b/content/base/src/nsXMLHttpRequest.cpp @@ -589,6 +589,7 @@ nsXMLHttpRequest::ConvertBodyToText(nsAString& aOutBuffer) } while ( NS_FAILED(rv) && (dataLen > 0) ); aOutBuffer.Assign(outBuffer, totalChars); + nsMemory::Free(outBuffer); return NS_OK; }