51f0aa
commit 74589f738efd72e07f759a4aabd2e32613aaefb8
51f0aa
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
51f0aa
Date:   Tue Sep 1 08:35:38 2015 -0700
51f0aa
51f0aa
    Filter out NULL entries.
51f0aa
51f0aa
diff --git a/malloc/mtrace.pl b/malloc/mtrace.pl
51f0aa
index adf61c73737160fb..c48e227e9fee8521 100644
51f0aa
--- a/malloc/mtrace.pl
51f0aa
+++ b/malloc/mtrace.pl
51f0aa
@@ -167,7 +167,7 @@ while (<DATA>) {
51f0aa
 		printf ("+ %#0@XXX@x Alloc %d duplicate: %s %s\n",
51f0aa
 			hex($allocaddr), $nr, &location($addrwas{$allocaddr}),
51f0aa
 			$where);
51f0aa
-	    } else {
51f0aa
+	    } elsif ($allocaddr =~ /^0x/) {
51f0aa
 		$allocated{$allocaddr}=$howmuch;
51f0aa
 		$addrwas{$allocaddr}=$where;
51f0aa
 	    }