[cfe-commits] have the preprocessor take ownership of callback objects

Sam Bishop sam at bishop.dhs.org
Thu Mar 13 15:25:01 PDT 2008


The attached patch fixes a memory leak by having Preprocessor objects
take ownership of any PPCallbacks objects they're given.  I can't think
of any reason why their lifetimes would be different.

Together with the TargetInfo patch, "echo 'int main() {}' | clang -E" is
now valgrind-clean.

Sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pp-take-ownership-of-callbacks.patch
Type: application/octet-stream
Size: 1354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20080313/b52cb0fd/attachment.obj>


More information about the cfe-commits mailing list