Marco Gerards <[EMAIL PROTECTED]> writes:

> The main problem is in case of a syntax error.  In that case all of
> the state should be released (free all memory structures).  But I have
> no idea how to do that;  yyparse just returns an error.  I need a way
> to make bison return a valid structure so I can check if parsing
> failed and release all of the memory.

Because the bash people were not able to solve this problem (bash
leaks memory when a syntax error occurs!), I think I should assume I
can't either.  So I just use my other solution for now. :-)

--
Marco



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to