Fix memory leak in RegExpStack.

R=yangguo@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11275037

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12812 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ulan@chromium.org 2012-10-25 11:10:13 +00:00
parent 0f8992395c
commit 889de3b780

View File

@ -72,7 +72,7 @@ char* RegExpStack::RestoreStack(char* from) {
void RegExpStack::Reset() {
if (thread_local_.memory_size_ > kMinimumStackSize) {
if (thread_local_.memory_size_ >= kMinimumStackSize) {
DeleteArray(thread_local_.memory_);
thread_local_ = ThreadLocal();
}