From 74589f738efd72e07f759a4aabd2e32613aaefb8 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Tue, 1 Sep 2015 08:35:38 -0700 Subject: [PATCH] Filter out NULL entries. --- ChangeLog | 4 ++++ malloc/mtrace.pl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f4e3d67c11..e4ca925d58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-09-01 Paul Pluzhnikov + + * malloc/mtrace.pl: Filter out NULL entries. + 2015-09-01 Joseph Myers * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro. diff --git a/malloc/mtrace.pl b/malloc/mtrace.pl index 0737890510..6227049d46 100644 --- a/malloc/mtrace.pl +++ b/malloc/mtrace.pl @@ -167,7 +167,7 @@ while () { 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; }