Revision: 12812
Author:   [email protected]
Date:     Thu Oct 25 04:10:13 2012
Log:      Fix memory leak in RegExpStack.

[email protected]

Review URL: https://chromiumcodereview.appspot.com/11275037
http://code.google.com/p/v8/source/detail?r=12812

Modified:
 /branches/bleeding_edge/src/regexp-stack.cc

=======================================
--- /branches/bleeding_edge/src/regexp-stack.cc Fri Mar 18 13:35:07 2011
+++ /branches/bleeding_edge/src/regexp-stack.cc Thu Oct 25 04:10:13 2012
@@ -72,7 +72,7 @@


 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