diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-20 21:42:57 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-20 21:42:57 +0000 |
commit | 143bcbff32d6fb6ee5642c30d99c3dafd5deccd3 (patch) | |
tree | 7cc97571b4851921e321ccbabb6efcffa6230883 /main/astmm.c | |
parent | 437366146dafe222b42be7c972889690ac92fd4c (diff) |
Fix the memory summary so that it doesn't print the first file in the list over
and over again.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43375 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 45e9006b7..3b184a6e8 100644 --- a/main/astmm.c +++ b/main/astmm.c @@ -382,10 +382,10 @@ static int handle_show_memory_summary(int fd, int argc, char *argv[]) count += list->count; if (fn) { ast_cli(fd, "%10d bytes in %5d allocations in function '%s' of '%s'\n", - list->len, list->count, list->fn, fn); + cur->len, cur->count, cur->fn, fn); } else { ast_cli(fd, "%10d bytes in %5d allocations in file '%s'\n", - list->len, list->count, list->fn); + cur->len, cur->count, cur->fn); } } |