[v8] r12812 committed - Fix memory leak in RegExpStack....

8 views
Skip to first unread message

codesite...@google.com

unread,
Oct 25, 2012, 7:10:22 AM10/25/12
to v8-...@googlegroups.com
Revision: 12812
Author: ul...@chromium.org
Date: Thu Oct 25 04:10:13 2012
Log: Fix memory leak in RegExpStack.

R=yan...@chromium.org

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();
}
Reply all
Reply to author
Forward
0 new messages