[Webkit-unassigned] [Bug 106710] FormData is leaky

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 25 15:23:29 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=106710


Ryosuke Niwa <rniwa at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|FormDataElement is leaky    |FormData is leaky




--- Comment #4 from Ryosuke Niwa <rniwa at webkit.org>  2013-01-25 15:25:24 PST ---
In ResourceRequest::doUpdateResourceRequest, if I comment out the line where it assigns formData to m_httpBody, the leaks disappear, including the bodyStream temporarily allocated here.

void ResourceRequest::doUpdateResourceRequest()
{
...
    if (NSData* bodyData = [m_nsRequest.get() HTTPBody])
        m_httpBody = FormData::create([bodyData bytes], [bodyData length]);
    else if (NSInputStream* bodyStream = [m_nsRequest.get() HTTPBodyStream]) {
        if (FormData* formData = adoptRef(httpBodyFromStream(bodyStream)))
            m_httpBody = formData; // comment out this line! (also the declaration of formData above to compile)
    }

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list