The removal of empty disjunction alternatives from the alternatives vector doesn't delete the removed alternative thus leaking it.
Created attachment 83682 [details] Patch to delete unneeded PatternAlternative
Comment on attachment 83682 [details] Patch to delete unneeded PatternAlternative r=me
Committed r79594: <http://trac.webkit.org/changeset/79594>
Comment on attachment 83682 [details] Patch to delete unneeded PatternAlternative View in context: https://bugs.webkit.org/attachment.cgi?id=83682&action=review > Source/JavaScriptCore/yarr/YarrPattern.cpp:500 > + PatternAlternative* altToRemove = parenthesesDisjunction->m_alternatives[i]; > parenthesesDisjunction->m_alternatives.remove(i); > + delete altToRemove; A couple post-patch-lading thoughts: I would prefer to do this with OwnPtr instead of an explicit delete. Maybe m_alternatives could actually use OwnPtr. I would also have called it alternativeToRemove instead of altToRemove.
http://trac.webkit.org/changeset/79594 might have broken GTK Linux 32-bit Release