Author: faridz
Date: Wed Oct 24 06:04:17 2007
New Revision: 587887
URL: http://svn.apache.org/viewvc?rev=587887&view=rev
Log:
2007-10-24 Farid Zaripov <[EMAIL PROTECTED]>
Merged r587886 from branches/4.2.x with a fix fot STDCXX-584
* 18.exception.cpp (test_throw_proc): Deallocate exception
description string passed to user throw proc to avoid memory
leak.
Modified:
incubator/stdcxx/trunk/tests/support/18.exception.cpp
Modified: incubator/stdcxx/trunk/tests/support/18.exception.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/support/18.exception.cpp?rev=587887&r1=587886&r2=587887&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/support/18.exception.cpp (original)
+++ incubator/stdcxx/trunk/tests/support/18.exception.cpp Wed Oct 24 06:04:17
2007
@@ -441,9 +441,7 @@
"throw_proc expected %d, got %d (\"%s\")",
expect_throw_proc, id, s);
- // do not delete[] s if returning to the lib
- // must delete only if rethrowing or jumping from here
- _RWSTD_UNUSED (s);
+ _RW::__rw_free_what_buf (s);
// signal that we were successfully called and with what value
expect_throw_proc = -id;