Frontend: Fix memory leak in CompilerInstance::setVerboseOutputStream
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 21 Nov 2020 03:13:19 +0000 (19:13 -0800)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 26 Jan 2021 22:57:23 +0000 (14:57 -0800)
commit8afabff6b11c3aa2b0a2f045833450703aab6605
treebab3bb662d00dbc260a74bc7d09ecfd782622285
parent8cef45517e47af7c81dd6504fa52ce98e21a6208
Frontend: Fix memory leak in CompilerInstance::setVerboseOutputStream

Found this memory leak in `CompilerInstance::setVerboseOutputStream` by
inspection; it looks like this wasn't previously exercised, since it was
never called twice.

Differential Revision: https://reviews.llvm.org/D93249
clang/lib/Frontend/CompilerInstance.cpp
clang/unittests/Frontend/OutputStreamTest.cpp