In a previous post, I discussed about my problems with flex scanner's memory. The procedure I was using for manually releasing memory did not seem to be enough since there were still 4 bytes leaking.
Basically, the solution was simpler than I thought: you just need to call
yylex_destroy()after the lexer finished (for instance, after the call to yyparse()). You can also remove the <
This solved all my problems :-)