[cfe-commits] have the preprocessor take ownership of callback objects
Sam Bishop
sam at bishop.dhs.org
Thu Mar 13 17:25:01 CDT 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: 1353 bytes
Desc: not available
Url : http://lists.cs.uiuc.edu/pipermail/cfe-commits/attachments/20080313/b52cb0fd/attachment.obj
More information about the cfe-commits
mailing list