stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r405271 - /incubator/stdcxx/trunk/tests/self/0.char.cpp
Date Tue, 09 May 2006 01:55:07 GMT
Author: sebor
Date: Mon May  8 18:55:06 2006
New Revision: 405271

URL: http://svn.apache.org/viewcvs?rev=405271&view=rev
Log:
2006-05-08  Martin Sebor  <sebor@roguewave.com>

	* char.cpp (test_rw_expand): Plugged benign memory leaks.

Modified:
    incubator/stdcxx/trunk/tests/self/0.char.cpp

Modified: incubator/stdcxx/trunk/tests/self/0.char.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/self/0.char.cpp?rev=405271&r1=405270&r2=405271&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/self/0.char.cpp (original)
+++ incubator/stdcxx/trunk/tests/self/0.char.cpp Mon May  8 18:55:06 2006
@@ -519,6 +519,7 @@
                    int (str_size), str, str_size,                       \
                    int (exp_size), expstr, exp_size,                    \
                    int (len), res, len);                                \
+        delete[] res;                                                   \
     } while (0)
 
     TEST ("",          "");
@@ -566,6 +567,7 @@
                    int (str_size), str, str_size,                          \
                    int (exp_size), expstr, exp_size,                       \
                    int (len), res, len);                                   \
+        delete[] res;                                                      \
     } while (0)
 
     TEST ("",          L"");



Mime
View raw message