diff options
author | Michael McConville <mmcconville@mykolab.com> | 2015-12-08 21:16:52 -0500 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2015-12-09 09:53:57 -0500 |
commit | d95947343e8a52957048b1d0b72c262183f2723f (patch) | |
tree | 94ece9fd39c511e1a460881e6bde7b462c804c93 /src/scan.l | |
parent | 1cc5d870326d0c574a21bbe85457bfc50d6cc43e (diff) |
Removed flex_free()i, corrected buf_destroy logic.
As with flex_alloc(), replace with direct calls to free().
The function buf_destroy is now null safe and the logic was corrected to free()
correctly.
Diffstat (limited to 'src/scan.l')
-rw-r--r-- | src/scan.l | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -231,7 +231,7 @@ M4QEND "]]" [[:digit:]]+ linenum = myctoi( yytext ); \"[^"\n]*\" { - flex_free( (void *) infilename ); + free(infilename); infilename = xstrdup(yytext + 1); infilename[strlen( infilename ) - 1] = '\0'; } @@ -1009,12 +1009,3 @@ void set_input_file( char *file ) linenum = 1; } - - -/* Wrapper routines for accessing the scanner's malloc routines. */ - -void flex_free( void *ptr ) - { - if ( ptr ) - free( ptr ); - } |