From e35ac56ba6d1be8c6c61f6614e1f6800f64d663c Mon Sep 17 00:00:00 2001 From: "dkegel@google.com" Date: Wed, 25 Mar 2009 01:15:13 +0000 Subject: 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 const&) (in libstdc++.so.6.0.9) by (within libstdc++.so.6.0.9) by std::basic_string, std::allocator >::basic_string(char const*, std::allocator 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 --- webkit/tools/test_shell/run_all_tests.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'webkit/tools/test_shell/run_all_tests.cc') 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; } -- cgit v1.1