diff options
author | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 01:15:13 +0000 |
---|---|---|
committer | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 01:15:13 +0000 |
commit | e35ac56ba6d1be8c6c61f6614e1f6800f64d663c (patch) | |
tree | 4c7d0c3bd78ba90e244bface629a8a020ff1078c /webkit/tools/test_shell/run_all_tests.cc | |
parent | 94b09c1bb66d640e54c571a6ab31d610fe318c53 (diff) | |
download | chromium_src-e35ac56ba6d1be8c6c61f6614e1f6800f64d663c.zip chromium_src-e35ac56ba6d1be8c6c61f6614e1f6800f64d663c.tar.gz chromium_src-e35ac56ba6d1be8c6c61f6614e1f6800f64d663c.tar.bz2 |
Clean up a trivial commandline memory leak that shows up in the valgrind run of test_shell_tests.
Fixes following valgrind warning:
380 bytes in 9 blocks are possibly lost in loss record 331 of 423
at operator new(unsigned int) 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 main src/webkit/tools/test_shell/run_all_tests.cc:57
Review URL: http://codereview.chromium.org/45041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12429 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/run_all_tests.cc')
-rw-r--r-- | webkit/tools/test_shell/run_all_tests.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/run_all_tests.cc b/webkit/tools/test_shell/run_all_tests.cc index ffedf76..2b69707 100644 --- a/webkit/tools/test_shell/run_all_tests.cc +++ b/webkit/tools/test_shell/run_all_tests.cc @@ -91,5 +91,7 @@ int main(int argc, char* argv[]) { TestShell::ShutdownTestShell(); TestShell::CleanupLogging(); + CommandLine::Terminate(); + return result; } |