From: Russell Bryant Date: Wed, 20 Sep 2006 22:14:04 +0000 (+0000) Subject: Merged revisions 43383 via svnmerge from X-Git-Tag: 1.6.0-beta1~3^2~4708 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2f22172dc53e712c544d9063e76e0bb5ea361e1;p=thirdparty%2Fasterisk.git Merged revisions 43383 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r43383 | russell | 2006-09-20 18:13:16 -0400 (Wed, 20 Sep 2006) | 2 lines Fix the total allocation count and total byte count in the memory summary ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43384 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/astmm.c b/main/astmm.c index 3b184a6e8f..55c80f618e 100644 --- a/main/astmm.c +++ b/main/astmm.c @@ -378,8 +378,8 @@ static int handle_show_memory_summary(int fd, int argc, char *argv[]) /* Dump the whole list */ for (cur = list; cur; cur = cur->next) { - len += list->len; - count += list->count; + len += cur->len; + count += cur->count; if (fn) { ast_cli(fd, "%10d bytes in %5d allocations in function '%s' of '%s'\n", cur->len, cur->count, cur->fn, fn);