aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-20 22:13:16 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-20 22:13:16 +0000
commitca757fff9ecbac3a8b3eb89b2507834f105f15b0 (patch)
treed7dba1dba658a81f76b5496bbaaa342b95663166
parent62d512b35e3d09c224618611157dc8790c436104 (diff)
Fix the total allocation count and total byte count in the memory summary
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43383 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/astmm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/astmm.c b/main/astmm.c
index 3b184a6e8..55c80f618 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);