Index: src/regexp-stack.cc |
=================================================================== |
--- src/regexp-stack.cc (revision 2968) |
+++ src/regexp-stack.cc (working copy) |
@@ -69,6 +69,14 @@ |
} |
+void RegExpStack::ThreadLocal::Free() { |
+ if (thread_local_.memory_size_ > 0) { |
+ DeleteArray(thread_local_.memory_); |
+ thread_local_ = ThreadLocal(); |
+ } |
+} |
+ |
+ |
Address RegExpStack::EnsureCapacity(size_t size) { |
if (size > kMaximumStackSize) return NULL; |
if (size < kMinimumStackSize) size = kMinimumStackSize; |