stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r587886 - /incubator/stdcxx/branches/4.2.x/tests/support/18.exception.cpp
Date Wed, 24 Oct 2007 13:02:06 GMT
Author: faridz
Date: Wed Oct 24 06:02:05 2007
New Revision: 587886

URL: http://svn.apache.org/viewvc?rev=587886&view=rev
Log:
	2007-10-24 Travis Vitek <vitek@roguewave.com>

	STDCXX-584
	* 18.exception.cpp (test_throw_proc): Deallocate exception
	description string passed to user throw proc to avoid memory
	leak.

Modified:
    incubator/stdcxx/branches/4.2.x/tests/support/18.exception.cpp

Modified: incubator/stdcxx/branches/4.2.x/tests/support/18.exception.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/tests/support/18.exception.cpp?rev=587886&r1=587885&r2=587886&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/tests/support/18.exception.cpp (original)
+++ incubator/stdcxx/branches/4.2.x/tests/support/18.exception.cpp Wed Oct 24 06:02:05 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;



Mime
View raw message