diff options
author | Michael Maitland <michaeltmaitland@gmail.com> | 2023-05-17 13:48:18 -0700 |
---|---|---|
committer | Michael Maitland <michaeltmaitland@gmail.com> | 2023-05-22 10:36:41 -0700 |
commit | 56674e8e4a4bb086a03857ec28739b1ecbd05374 (patch) | |
tree | 4768ab1994a1a581ea79c6f7dc1e402e6c441089 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h | |
parent | 9f992cc9350a7f7072a6dbf018ea07142ea7a7ed (diff) | |
download | llvm-56674e8e4a4bb086a03857ec28739b1ecbd05374.zip llvm-56674e8e4a4bb086a03857ec28739b1ecbd05374.tar.gz llvm-56674e8e4a4bb086a03857ec28739b1ecbd05374.tar.bz2 |
[llvm-mca][RISCV] Fix llvm-mca RISCVInstrument memory leak
There was a memory leak that presented itself once the llvm-mca
tests were committed. This leak was not checked for by the pre-commit
tests. This change changes the shared_ptr to a unique_ptr to avoid
this problem.
We will know that this fix works once committed since I don't know
whether it is possible to force a lit test to use LSan. I spent the
day trying to build llvm with LSan enabled without much luck. If
anyone knows how to build llvm with LSan for the lit-tests, I am
happy to give it another try locally.
Differential Revision: https://reviews.llvm.org/D150816
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h')
0 files changed, 0 insertions, 0 deletions