[compiler-rt] 5aef3df - [Sanitizers] Fix a memory leak.
Chih-Ping Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 28 05:49:03 PDT 2023
Author: Chih-Ping Chen
Date: 2023-03-28T08:47:13-04:00
New Revision: 5aef3dfad685f3129ffd4c4066963c8026693673
URL: https://github.com/llvm/llvm-project/commit/5aef3dfad685f3129ffd4c4066963c8026693673
DIFF: https://github.com/llvm/llvm-project/commit/5aef3dfad685f3129ffd4c4066963c8026693673.diff
LOG: [Sanitizers] Fix a memory leak.
Differential Revision: https://reviews.llvm.org/D146756
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_suppressions.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_suppressions.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_suppressions.cpp
index a674034b8e291..f3818526baab1 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_suppressions.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_suppressions.cpp
@@ -86,6 +86,7 @@ void SuppressionContext::ParseFromFile(const char *filename) {
}
Parse(file_contents);
+ UnmapOrDie(file_contents, contents_size);
}
bool SuppressionContext::Match(const char *str, const char *type,
More information about the llvm-commits
mailing list