| Index: net/base/fuzzer_test_support.cc
|
| diff --git a/net/base/fuzzer_test_support.cc b/net/base/fuzzer_test_support.cc
|
| index 7d5b8eaec278def834e967ac581897ce1ad85c3e..f355c8808e6fc8a2418828d12014bd38355c029c 100644
|
| --- a/net/base/fuzzer_test_support.cc
|
| +++ b/net/base/fuzzer_test_support.cc
|
| @@ -6,6 +6,7 @@
|
| #include "base/i18n/icu_util.h"
|
| #include "base/logging.h"
|
| #include "base/message_loop/message_loop.h"
|
| +#include "base/metrics/statistics_recorder.h"
|
|
|
| namespace {
|
|
|
| @@ -19,6 +20,10 @@ struct InitGlobals {
|
| // //net code. Initializing ICU is important to prevent fuzztests from
|
| // asserting when handling non-ASCII urls.
|
| CHECK(base::i18n::InitializeICU());
|
| +
|
| + // Prevent every call to get a Histogram* from leaking memory. Instead, only
|
| + // the fist call to get each Histogram* leaks memory.
|
| + base::StatisticsRecorder::Initialize();
|
| }
|
|
|
| // A number of tests use async code which depends on there being a message
|
|
|