Index: src/Common/Stats/Heap.cc
===================================================================
--- src/Common/Stats/Heap.cc	(revision 4e5e6cc70090e807822b56cfc8f3dc1ddaae698e)
+++ src/Common/Stats/Heap.cc	(revision aba20d252ff0657f8a54ae4f5b2ff291161cfb08)
@@ -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
 
