diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-20 22:14:04 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-20 22:14:04 +0000 |
commit | d29e6d39e50a92831072505f24e44006c6902d19 (patch) | |
tree | a7900895a99761ee6ffd90f80c9acd1e69f46ff8 /main/astmm.c | |
parent | 4f5e1963faefaca0be3cc09c9ec9ea322667e81a (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@43384 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/astmm.c')
-rw-r--r-- | main/astmm.c | 4 |
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); |