diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1993-12-11 10:30:20 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1993-12-11 10:30:20 +0000 |
commit | 03a0b119fc36c17af4808fa738221d87eea896d8 (patch) | |
tree | 9d08b58f18067f7a8e3d2a0a677b3ab656a8048f /dfa.c | |
parent | c1b386a44bd02a55003b29978906a1a02a559e21 (diff) |
Initialize dfaacc[0] for -CF representation
Fixed minor memory leak
Diffstat (limited to 'dfa.c')
-rw-r--r-- | dfa.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -449,7 +449,7 @@ void ntod() * ecgroup[NUL]), (2) NUL's equivalence class is the last * equivalence class, and (3) the number of equivalence classes is * the same as the number of characters. This latter case comes - * about when useecs is false or when its true but every character + * about when useecs is false or when it's true but every character * still manages to land in its own class (unlikely, but it's * cheap to check for). If all these things are true then the * character code needed to represent NUL's equivalence class for @@ -508,7 +508,9 @@ void ntod() { for ( i = 0; i <= numecs; ++i ) state[i] = 0; + place_state( state, 0, 0 ); + dfaacc[i].dfaacc_state = 0; } else if ( fulltbl ) @@ -763,6 +765,9 @@ void ntod() mkdeftbl(); } + + yy_flex_free( (void *) accset ); + yy_flex_free( (void *) nset ); } |