Reviewers: Lasse Reichstein, Description: Fix memory leak in regexp macro assembler. If the buffer has been expanded the macro assembler owns the buffer and needs to dispose it in the destructor.
Please review this at http://codereview.chromium.org/126111 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/regexp-macro-assembler-irregexp.cc Index: src/regexp-macro-assembler-irregexp.cc =================================================================== --- src/regexp-macro-assembler-irregexp.cc (revision 2143) +++ src/regexp-macro-assembler-irregexp.cc (working copy) @@ -47,6 +47,7 @@ RegExpMacroAssemblerIrregexp::~RegExpMacroAssemblerIrregexp() { if (backtrack_.is_linked()) backtrack_.Unuse(); + if (own_buffer_) buffer_.Dispose(); } --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
