Index: base/lazy_instance.h |
diff --git a/base/lazy_instance.h b/base/lazy_instance.h |
index 7021829e563a0facdb65c68fb7f70c2f1997891d..3935780a55b7352ba78611944b48fa3cfce15d14 100644 |
--- a/base/lazy_instance.h |
+++ b/base/lazy_instance.h |
@@ -40,6 +40,7 @@ |
#include "base/atomicops.h" |
#include "base/base_export.h" |
#include "base/basictypes.h" |
+#include "base/debug/leak_annotations.h" |
#include "base/logging.h" |
#include "base/memory/aligned_memory.h" |
#include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
@@ -91,6 +92,7 @@ struct LeakyLazyInstanceTraits { |
static const bool kAllowedToAccessOnNonjoinableThread = true; |
static Type* New(void* instance) { |
+ ANNOTATE_SCOPED_MEMORY_LEAK; |
return DefaultLazyInstanceTraits<Type>::New(instance); |
} |
static void Delete(Type* instance) { |