|memory leak in yacc firstname.lastname@example.org (1994-09-14)|
|Re: memory leak in yacc email@example.com (1994-09-15)|
|Re: memory leak in yacc firstname.lastname@example.org (1994-09-18)|
|Re: Memory leak in YACC Edward_Finch@intersolv.com (1994-09-21)|
|Date:||Thu, 15 Sep 1994 09:19:47 GMT|
The moderator writes:
> [I sometimes write my own wrapper for malloc that chains together all of
> the memory allocated using it, so then I can free it all at a point where I
> know that none of it's in use any more. -John]
This certainly seems the best method to me. If yacc finds a syntax error,
it's likely to leave you with an incomplete tree of malloc'd areas, and
no way of freeing them. There are probably ways, but I just found it
simpler to free everything allocated at once.
Return to the
Search the comp.compilers archives again.