2008-05-23 Farid Zaripov <farid_zaripov@epam.com>
Merged r659150 from branches/4.2.x.
* tests/strings/21.string.exceptions.cpp (user_throw): Use __rw::__rw_free_what_buf()
instead of delete[] to free what buffer.
git-svn-id: https://svn.apache.org/repos/asf/stdcxx/trunk@659600 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tests/strings/21.string.exceptions.cpp b/tests/strings/21.string.exceptions.cpp
index e6bd69a..59d2f4a 100644
--- a/tests/strings/21.string.exceptions.cpp
+++ b/tests/strings/21.string.exceptions.cpp
@@ -84,7 +84,7 @@
/* static */ void
user_throw (int ex_id, char *what)
{
- delete[] what;
+ _RW::__rw_free_what_buf (what);
#ifndef _RWSTD_NO_EXCEPTIONS