[Webkit-unassigned] [Bug 27211] fastMalloc and fastFree mismatch correction

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 24 10:55:42 PDT 2009


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





--- Comment #5 from Darin Adler <darin at apple.com>  2009-08-24 10:55:41 PDT ---
(In reply to comment #4)
> I think there is no problem freeing with fastFree here, since Vector allocates
> it's storage with fastMalloc. What have I missed?

How Vector allocates its storage is irrelevant, since is not the vector storage
being freed. The vector storage is a pointer in
selectorVector.m_buffer.m_buffer.

What's being freed here is selectorVector[i]. If you trace the flow of the code
back you'll see that it's a CSSSelector object that was allocated by the
CSSParser::createFloatingSelector function.

-- 
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