summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2017-05-16 18:18:03 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2017-05-16 18:18:03 +0000
commitc515867bc14c433febcc574baedd081c078124d1 (patch)
tree980b6b2cfae845c1849513de5e7f133665b610b8 /test
parent1089e7519494be608611df538b5d17ebf246304c (diff)
[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
Diffstat (limited to 'test')
-rw-r--r--test/exception_object_alignment.pass.cpp1
1 files changed, 1 insertions, 0 deletions
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 @@ int main() {
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;
}