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:
parent
0f8992395c
commit
889de3b780
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user