[all-commits] [llvm/llvm-project] 8afabf: Frontend: Fix memory leak in CompilerInstance::set...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Tue Jan 26 14:58:03 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8afabff6b11c3aa2b0a2f045833450703aab6605
      https://github.com/llvm/llvm-project/commit/8afabff6b11c3aa2b0a2f045833450703aab6605
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2021-01-26 (Tue, 26 Jan 2021)

  Changed paths:
    M clang/lib/Frontend/CompilerInstance.cpp
    M clang/unittests/Frontend/OutputStreamTest.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list