Re: Cleaning up memory in bison ?

2006-04-21 Thread David Fang
Hi, (My first post to the list, at a very late hour, be kind!) I have a way of doing this that involves a series of reverse-engineering scripts, but I'll start by summarizing what I did at in high-level. Then we can get into details if need be. This technique for properly freeing

Cleaning up memory in bison ?

2006-04-19 Thread Arno Wilhelm
Hello, I am very new to bison and flex and wonder how to clean up pointers/memory in bison properly. Whenever I copied a string to the variable yylval.str in the flex file like this: {WORD} { yylval.str = strdup( yytext ); return WORD; } I got a memory leak cause I did not delete the