diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2014-09-26 00:20:37 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2014-09-26 00:20:37 +0000 |
commit | e89258041578d534eb4fc8641d48822f066c24f8 (patch) | |
tree | 65b99c31d3e6af7bfdb775d8afa261244765e678 /compiler-rt/test/asan | |
parent | 291a57e2c22b6aab2c6e65e014c89fadf93919c8 (diff) | |
download | bcm5719-llvm-e89258041578d534eb4fc8641d48822f066c24f8.tar.gz bcm5719-llvm-e89258041578d534eb4fc8641d48822f066c24f8.zip |
[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.
llvm-svn: 218483
Diffstat (limited to 'compiler-rt/test/asan')
-rw-r--r-- | compiler-rt/test/asan/TestCases/debug_locate.cc | 2 |
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; } |