Reviewers: Yang,

Message:
PTAL

Description:
Fix memory leak in RegExpStack.

[email protected]


Please review this at https://chromiumcodereview.appspot.com/11275037/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/regexp-stack.cc


Index: src/regexp-stack.cc
diff --git a/src/regexp-stack.cc b/src/regexp-stack.cc
index ff9547f3a711ed0f44126aa624d421b734178bb8..fda7253edcee150a6cac9668e0f9db726bd135ce 100644
--- a/src/regexp-stack.cc
+++ b/src/regexp-stack.cc
@@ -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();
   }


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to