commit | c515867bc14c433febcc574baedd081c078124d1 | [log] [tgz] |
---|---|---|
author | Akira Hatanaka <ahatanaka@apple.com> | Tue May 16 18:18:03 2017 +0000 |
committer | Akira Hatanaka <ahatanaka@apple.com> | Tue May 16 18:18:03 2017 +0000 |
tree | 980b6b2cfae845c1849513de5e7f133665b610b8 | |
parent | 1089e7519494be608611df538b5d17ebf246304c [diff] [blame] |
[libcxxabi] Fix the test case committed in r303175. Free the __cxa_exception object allocated with __cxa_allocate_exception. This is an attempt to fix this asan bot: http://lab.llvm.org:8011/builders/libcxx-libcxxabi-x86_64-linux-ubuntu-asan/builds/560 git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@303194 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/exception_object_alignment.pass.cpp b/test/exception_object_alignment.pass.cpp index addef18..960751b 100644 --- a/test/exception_object_alignment.pass.cpp +++ b/test/exception_object_alignment.pass.cpp
@@ -28,6 +28,7 @@ auto i = reinterpret_cast<uintptr_t>(p); auto a = std::alignment_of<S>::value; assert(i % a == 0); + __cxxabiv1::__cxa_free_exception(p); #endif return 0; }