summaryrefslogtreecommitdiffstats
path: root/lib/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memory.c')
-rw-r--r--lib/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/memory.c b/lib/memory.c
index fb0e8d0d..5ee33aa8 100644
--- a/lib/memory.c
+++ b/lib/memory.c
@@ -587,7 +587,7 @@ DEFUN_CALL (show_memory_summary,
LOCK ;
for (mtype = 1 ; mtype < MTYPE_MAX ; ++mtype)
- alloc += mstat[mtype] ;
+ alloc += mstat.mt[mtype].alloc ;
UNLOCK
vty_out(vty, "%ld items allocated%s", alloc, VTY_NEWLINE) ;