[all-commits] [llvm/llvm-project] 0fbafb: [test] Fix memory leak in validateTargetProfile

Vitaly Buka via All-commits all-commits at lists.llvm.org
Sat Jul 16 16:48:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0fbafb5a1c4381ded4bc7f59a5a6091c229faed7
      https://github.com/llvm/llvm-project/commit/0fbafb5a1c4381ded4bc7f59a5a6091c229faed7
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2022-07-16 (Sat, 16 Jul 2022)

  Changed paths:
    M clang/unittests/Driver/ToolChainTest.cpp

  Log Message:
  -----------
  [test] Fix memory leak in validateTargetProfile

Unfortunatly fixing leak expose use-after-free if delete more then one
Compilation for the same Driver, so I am changing validateTargetProfile
to create own Driver each time.

The test was added by D122865.




More information about the All-commits mailing list