bugzilla-daemon at main.slony.info bugzilla-daemon at main.slony.info
Wed Sep 28 08:26:05 PDT 2011
http://www.slony.info/bugzilla/show_bug.cgi?id=241

--- Comment #1 from Steve Singer <ssinger at ca.afilias.info> 2011-09-28 08:26:05 PDT ---
I *THINK the problem here is that

in scan.l when processing an include directive we strdup() the filename and
pass this to pushBuffer().  This sets current_file to the memory allocated by
strdup.  As the parser runs it stores a pointer to current_file into the
structures that the parser creates.

When processing of that file ends popBuffer() calls free(current_file).  This
will deallocate the memory even though the structures created by the parser
still might point at that memory.

In parser.y should we be calling strdup(current_file) to create a new copy of
the filename for storing in the parser structures?

-- 
Configure bugmail: http://www.slony.info/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Slony1-bugs mailing list