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

Chris Lattner clattner at apple.com
Thu Mar 13 23:10:06 PDT 2008


On Mar 13, 2008, at 3:25 PM, Sam Bishop wrote:

> 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.

Very nice, applied:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080310/004686.html

Thanks Sam!

-Chris



More information about the cfe-commits mailing list