Opened 17 years ago
Closed 17 years ago
#2118 closed defect (fixed)
maplexer memory leak
Reported by: | woodbri | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | 5.0 release |
Component: | MapServer C Library | Version: | 5.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
It looks like the maplexer.c might be leaking memory.
maplexer.c:4318 (current svn) allocates yy_buffer_stack and this is getting leaked.
It should probably get freed in lexer_cleanup() with something like:
if( (yy_buffer_stack) != NULL ) { msyyfree( (yy_buffer_stack) ); (yy_buffer_stack) = NULL; } /* or by calling */ msyylex_destroy();
or by something similar. I am not familiar with this code so someone that knows it should probably look into this and verify that my assumptions are correct.
Note:
See TracTickets
for help on using tickets.
Fixed last night in the SVN main trunk...
Steve