memory leak in yacc

etse@scdt.intel.com (Eric Tse)
Wed, 14 Sep 1994 14:56:34 GMT

          From comp.compilers

Related articles
memory leak in yacc etse@scdt.intel.com (1994-09-14)
Re: memory leak in yacc steve@cegelecproj.co.uk (1994-09-15)
Re: memory leak in yacc schinz@guano.alphanet.ch (1994-09-18)
Re: Memory leak in YACC Edward_Finch@intersolv.com (1994-09-21)
| List of all articles for this month |

Newsgroups: comp.compilers
From: etse@scdt.intel.com (Eric Tse)
Keywords: yacc, question, comment
Organization: Intel Santa Clara Design Technology
Date: Wed, 14 Sep 1994 14:56:34 GMT

Hi everyone,
I have a question in regarding to freeing
memory in yacc rule file:


Is there any better way to free char* token
other than the following?


A : B C D
  { ...
      free(B); free(C); free(D);
  }


Thanks.
-
Eric Tse etse@scdt.intel.com
Intel Corporation (408) 765-8453
[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]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.