projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cfaffa
)
Fix the memory summary so that it doesn't print the first file in the list over
author
Russell Bryant
<russell@russellbryant.com>
Wed, 20 Sep 2006 21:42:57 +0000
(21:42 +0000)
committer
Russell Bryant
<russell@russellbryant.com>
Wed, 20 Sep 2006 21:42:57 +0000
(21:42 +0000)
and over again.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43375
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/astmm.c
patch
|
blob
|
history
diff --git
a/main/astmm.c
b/main/astmm.c
index
45e9006
..
3b184a6
100644
(file)
--- 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);
}
}