Leak of mallocs under StructureSet::OutOfLineList::create
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Sep 2014 03:01:44 +0000 (03:01 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Sep 2014 03:01:44 +0000 (03:01 +0000)
commit22595ba6f572124c95b943f3e39c4ffca2b7cb37
tree80665abb98e744edad4f8e6ea4d2a3bc9a55dccd
parenta33f9c84a8ad87b2692053a1b1f679ba5b24b6c5
Leak of mallocs under StructureSet::OutOfLineList::create
https://bugs.webkit.org/show_bug.cgi?id=136970

Reviewed by Filip Pizlo.

addOutOfLine should free the old list when expanding the capacity.

* bytecode/StructureSet.cpp:
(JSC::StructureSet::addOutOfLine):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/StructureSet.cpp