diff options
author | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 19:16:53 +0000 |
---|---|---|
committer | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 19:16:53 +0000 |
commit | 6b57c62d201a659dca4ccd794a2c484a5359b4cb (patch) | |
tree | 73c92e7c12925e46e1281641036cdab5de578428 /base | |
parent | a4a0bd9562e38ffff8aaf58031bdde0878ebfea4 (diff) | |
download | chromium_src-6b57c62d201a659dca4ccd794a2c484a5359b4cb.zip chromium_src-6b57c62d201a659dca4ccd794a2c484a5359b4cb.tar.gz chromium_src-6b57c62d201a659dca4ccd794a2c484a5359b4cb.tar.bz2 |
The test suite commandline leak is easy to plug, so we may as well.
Fixes
244 bytes in 5 blocks are possibly lost in loss record 57 of 97
at operator new(unsigned int) m_replacemalloc/vg_replace_malloc.c:230
by std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> const&) (in libstdc++.so.6.0.9)
by (within libstdc++.so.6.0.9)
by std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in libstdc++.so.6.0.9)
by CommandLine::CommandLine(int, char const* const*) src/base/command_line.cc:96
by CommandLine::Init(int, char const* const*) src/base/command_line.cc:177
by TestSuite::TestSuite(int, char**) src/base/test_suite.h:34
Review URL: http://codereview.chromium.org/42341
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11999 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/test_suite.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/test_suite.h b/base/test_suite.h index 41c997d..5424925 100644 --- a/base/test_suite.h +++ b/base/test_suite.h @@ -40,7 +40,9 @@ class TestSuite { // Initialize(). See bug 6436. } - virtual ~TestSuite() {} + virtual ~TestSuite() { + CommandLine::Terminate(); + } // Don't add additional code to this method. Instead add it to // Initialize(). See bug 6436. |