Changeset 43100 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Apr 30, 2009, 2:51:57 PM (16 years ago)
Author:
[email protected]
Message:

2009-04-30 Gavin Barraclough <[email protected]>

Reviewed by Oliver "Abandon Ship!" Hunt.

Fix a leak in Yarr.

All Disjunctions should be recorded in RegexPattern::m_disjunctions,
so that they can be freed at the end of compilation - copyDisjunction
is failing to do so.

  • yarr/RegexCompiler.cpp: (JSC::Yarr::RegexPatternConstructor::copyDisjunction):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r43096 r43100  
     12009-04-30  Gavin Barraclough  <[email protected]>
     2
     3        Reviewed by Oliver "Abandon Ship!" Hunt.
     4
     5        Fix a leak in Yarr.
     6
     7        All Disjunctions should be recorded in RegexPattern::m_disjunctions,
     8        so that they can be freed at the end of compilation - copyDisjunction
     9        is failing to do so.
     10
     11        * yarr/RegexCompiler.cpp:
     12        (JSC::Yarr::RegexPatternConstructor::copyDisjunction):
     13
    1142009-04-30  Oliver Hunt  <[email protected]>
    215
  • trunk/JavaScriptCore/yarr/RegexCompiler.cpp

    r42853 r43100  
    495495        }
    496496
     497        m_pattern.m_disjunctions.append(newDisjunction);
    497498        return newDisjunction;
    498499    }
Note: See TracChangeset for help on using the changeset viewer.