[antlr-interest] How to free ANTLR3_STRING (c runtime)?

Chetty, Jay jay.chetty at intel.com
Fri May 15 09:55:23 PDT 2009


What's the right way to free the ANTLR3_STRING returned from
pANTLR3TOKEN_STREAM's toStringSS()


I used destroy method of the string factory and it seems that's not the right way
As I get these lines when my executable exists.

*** glibc detected *** double free or corruption (fasttop): 0x081514b8 ***
*** glibc detected *** double free or corruption (!prev): 0x081641a8 ***

Thanks
+Jay


More information about the antlr-interest mailing list