Index: src/Common/Stats/Heap.cc
===================================================================
--- src/Common/Stats/Heap.cc	(revision 4e5e6cc70090e807822b56cfc8f3dc1ddaae698e)
+++ src/Common/Stats/Heap.cc	(revision 8b34df032b958bfd4e1d59e5d6573aa153bd4015)
@@ -21,6 +21,14 @@
 #include <iostream>
 
-#if defined( NO_STATISTICS ) || defined( TCMALLOC )
-	#define NO_HEAP_STATISTICS
+#if defined(__has_feature)
+	#if __has_feature(address_sanitizer)
+		#define NO_HEAP_STATISTICS
+	# endif
+#endif
+
+#if defined( NO_STATISTICS ) || defined( TCMALLOC ) || defined(__SANITIZE_ADDRESS__)
+	#if !defined(NO_HEAP_STATISTICS)
+		#define NO_HEAP_STATISTICS
+	#endif
 #endif
 
