Fix memory management issues with expanded %include
commit88c9e1f88cd1e67ad4fb2834f3cad6160d5a3fbb
authorH. Peter Anvin <hpa@zytor.com>
Wed, 4 Jun 2008 18:26:59 +0000 (4 11:26 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 4 Jun 2008 18:26:59 +0000 (4 11:26 -0700)
tree01b0135d5f68e2e9cb80ccdf774d9f687c33fda2
parent0eebf799db452dc1980931bd2f15efde5ecdf28c
Fix memory management issues with expanded %include

Ownership of the filename string was a bit fuzzy, with the result that
we were freeing it even though it was retained for use by __FILE__.
Clean up a number of other memory management issues with the new
quoting code, and change the stdscan implementation to one pass over
the string.
preproc.c
quote.c
quote.h
stdscan.c