[all-commits] [llvm/llvm-project] cdae6d: [lldb] Fix one leak in reproducer
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Apr 19 19:39:28 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cdae6d7711d621c19623ae4fbfdde9e0301260c7
https://github.com/llvm/llvm-project/commit/cdae6d7711d621c19623ae4fbfdde9e0301260c7
Author: Fangrui Song <i at maskray.me>
Date: 2021-04-19 (Mon, 19 Apr 2021)
Changed paths:
M lldb/tools/driver/Driver.cpp
Log Message:
-----------
[lldb] Fix one leak in reproducer
Use a variable of static storage duration to reference an intentionally
leaked variable. A static data area is in the GC-set of various leak
checkers.
This fixes 3 `check-lldb-shell` tests in a `-DLLVM_USE_SANITIZER={Leaks,Address}` build,
e.g. `test/Shell/Reproducer/TestHomeDir.test`
Differential Revision: https://reviews.llvm.org/D100806
More information about the All-commits
mailing list