diff options
author | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-22 11:55:23 +0000 |
---|---|---|
committer | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-22 11:55:23 +0000 |
commit | 8543761e279a84484fb41bd272848a81c875565a (patch) | |
tree | 9fc15eee058fbb3db02767699e923d198e95cab4 /net | |
parent | dfca5acfa3354eec7c7da6848b7ce29481c89bd4 (diff) | |
download | chromium_src-8543761e279a84484fb41bd272848a81c875565a.zip chromium_src-8543761e279a84484fb41bd272848a81c875565a.tar.gz chromium_src-8543761e279a84484fb41bd272848a81c875565a.tar.bz2 |
Annotated the known leak in TestServerLauncher::LoadTestRootCert
TBR=wtc
Review URL: http://codereview.chromium.org/1155001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42209 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/net.gyp | 10 | ||||
-rw-r--r-- | net/socket/ssl_test_util.cc | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/net/net.gyp b/net/net.gyp index c5743d8..7e22af8 100644 --- a/net/net.gyp +++ b/net/net.gyp @@ -604,6 +604,7 @@ 'base/host_cache_unittest.cc', 'base/host_resolver_impl_unittest.cc', 'base/keygen_handler_unittest.cc', + 'base/leak_annotations.h', 'base/listen_socket_unittest.cc', 'base/listen_socket_unittest.h', 'base/mapped_host_resolver_unittest.cc', @@ -825,6 +826,15 @@ '../build/linux/system.gyp:nss', ], }], + ['OS == "linux"', { + 'conditions': [ + ['linux_use_tcmalloc==1', { + 'dependencies': [ + '../base/allocator/allocator.gyp:allocator', + ], + }], + ], + }], ], }, { diff --git a/net/socket/ssl_test_util.cc b/net/socket/ssl_test_util.cc index c3fe625ea..b52dba5 100644 --- a/net/socket/ssl_test_util.cc +++ b/net/socket/ssl_test_util.cc @@ -18,6 +18,7 @@ #endif #include "base/file_util.h" +#include "base/leak_annotations.h" #include "base/logging.h" #include "base/path_service.h" #include "base/utf_string_conversions.h" @@ -301,6 +302,7 @@ bool TestServerLauncher::LoadTestRootCert() { // This currently leaks a little memory. // TODO(dkegel): fix the leak and remove the entry in // tools/valgrind/memcheck/suppressions.txt + ANNOTATE_SCOPED_MEMORY_LEAK; // Tell heap checker about the leak. cert_ = LoadTemporaryRootCert(GetRootCertPath()); DCHECK(cert_); return (cert_ != NULL); |