On Wed, Aug 3, 2011 at 14:15, Gabriel Charette <gch...@google.com> wrote:
> We will probably need the strings in here until the end of the > compilation, so we could either just not free it (i.e. memory leak, > but allow important when program is over...) > > Or we could strcpy the strings pph'ed in, but that involves > duplication of identical strings, unless we use a cache-like trick for > this. OK, I think I know what you are running into. I just committed http://codereview.appspot.com/4843044 which should fix the problem you were running into. Instead of creating the string table on top of the raw file buffer, we allocate them separately and never free them up. Does that fix your problem? Diego.