[Mapserver-dev] Unfreed Buffer in Lexer
Frank Warmerdam
warmerdam at pobox.com
Thu Apr 8 11:11:20 EDT 2004
Folks,
Sorry to reply to my own post. I have found that I can add the following
definition to maplexer.l and then call the new function from msCleanup().
void lexer_cleanup() {
if( yy_current_buffer != NULL )
{
yy_delete_buffer( yy_current_buffer );
yy_current_buffer = 0;
}
}
The yy_current_buffer variable is static to maplexer.c (generated from
maplexer.l). Does anyone know if functions like yy_delete_buffer() and
the yy_current_buffer variable are general to all lex/flex compatible
parsers? Do we still support use of lex or do we require use of flex?
Any objections to my committing my change?
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the mapserver-dev
mailing list