aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--malloc/mtrace.pl2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f4e3d67..e4ca925 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * malloc/mtrace.pl: Filter out NULL entries.
+
2015-09-01 Joseph Myers <joseph@codesourcery.com>
* inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
diff --git a/malloc/mtrace.pl b/malloc/mtrace.pl
index 0737890..6227049 100644
--- a/malloc/mtrace.pl
+++ b/malloc/mtrace.pl
@@ -167,7 +167,7 @@ while (<DATA>) {
printf ("+ %#0@XXX@x Alloc %d duplicate: %s %s\n",
hex($allocaddr), $nr, &location($addrwas{$allocaddr}),
$where);
- } else {
+ } elsif ($allocaddr =~ /^0x/) {
$allocated{$allocaddr}=$howmuch;
$addrwas{$allocaddr}=$where;
}