summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/test/asan/TestCases/debug_locate.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/test/asan/TestCases/debug_locate.cc b/compiler-rt/test/asan/TestCases/debug_locate.cc
index 6260d65e7c2..3015d231b16 100644
--- a/compiler-rt/test/asan/TestCases/debug_locate.cc
+++ b/compiler-rt/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;
}
OpenPOWER on IntegriCloud