]> granicus.if.org Git - flex/commitdiff
Modified to use yy_flex_alloc()
authorVern Paxson <vern@ee.lbl.gov>
Sat, 12 Jun 1993 13:42:18 +0000 (13:42 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Sat, 12 Jun 1993 13:42:18 +0000 (13:42 +0000)
sym.c

diff --git a/sym.c b/sym.c
index 1558cf4bb860d40a879ffad6239b8650f35b5d96..0c1ad8090e31c363abd88a224cd397063c21af3f 100644 (file)
--- a/sym.c
+++ b/sym.c
@@ -74,7 +74,8 @@ int table_size;
                }
 
        /* create new entry */
-       new_entry = (struct hash_entry *) malloc( sizeof( struct hash_entry ) );
+       new_entry = (struct hash_entry *)
+               yy_flex_alloc( sizeof( struct hash_entry ) );
 
        if ( new_entry == NULL )
                flexfatal( "symbol table memory allocation failed" );