[llvm] 85a96d8 - [symbolizer] Fix leak after D96883
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue May 11 22:52:35 PDT 2021
Author: Vitaly Buka
Date: 2021-05-11T22:51:36-07:00
New Revision: 85a96d82ca76819df56c97b6b3b5d5d98a030d5d
URL: https://github.com/llvm/llvm-project/commit/85a96d82ca76819df56c97b6b3b5d5d98a030d5d
DIFF: https://github.com/llvm/llvm-project/commit/85a96d82ca76819df56c97b6b3b5d5d98a030d5d.diff
LOG: [symbolizer] Fix leak after D96883
Added:
Modified:
llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp b/llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp
index 6d2dd346de573..6bba4e63c9eb2 100644
--- a/llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp
+++ b/llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp
@@ -318,7 +318,7 @@ void JSONPrinter::listBegin() {
void JSONPrinter::listEnd() {
assert(ObjectList);
printJSON(std::move(*ObjectList));
- ObjectList.release();
+ ObjectList.reset();
}
} // end namespace symbolize
More information about the llvm-commits
mailing list