summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2014-09-26 00:20:37 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2014-09-26 00:20:37 +0000
commite5201f5d4f061d560cc5e100c1328081745d2e98 (patch)
tree24f6900b90d4c0b04c170d0f8189946411e6ff5d
parentf85ef59a5950dbce78638025d6c0f47e7431f0b2 (diff)
[compiler-rt] fix failing debug_locate.cc test due to a leak
New test from r218481 fails on Linux due to LeakSanitizer reporting a leak, this patch frees the memory properly. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@218483 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/asan/TestCases/debug_locate.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/asan/TestCases/debug_locate.cc b/test/asan/TestCases/debug_locate.cc
index 6260d65e7..3015d231b 100644
--- a/test/asan/TestCases/debug_locate.cc
+++ b/test/asan/TestCases/debug_locate.cc
@@ -73,5 +73,7 @@ int main() {
type = __asan_locate_address((void *)shadow_gap, NULL, 0, NULL, NULL);
assert(0 == strcmp(type, "shadow gap"));
+ free(heap_ptr);
+
return 0;
}