[cfe-commits] plug a memory leak in the -E code

Sam Bishop sam at bishop.dhs.org
Mon Mar 3 09:18:02 PST 2008


When clang is acting on the -E option, it creates a
PrintPPOutputPPCallbacks object but never deletes it.  The object is
passed to the Preprocessor object, but it doesn't delete it either.

It seems to me that the Driver code ought to do the deleting.  So I have
attached a patch which does just that.

Thanks,
Sam Bishop
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-dash-E-memory-leak.patch
Type: application/octet-stream
Size: 967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20080303/6ef106f7/attachment.obj>


More information about the cfe-commits mailing list