You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2006/05/09 03:55:07 UTC
svn commit: r405271 - /incubator/stdcxx/trunk/tests/self/0.char.cpp
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 <se...@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"");