]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix the total allocation count and total byte count in the memory summary
authorRussell Bryant <russell@russellbryant.com>
Wed, 20 Sep 2006 22:13:16 +0000 (22:13 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 20 Sep 2006 22:13:16 +0000 (22:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43383 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/astmm.c

index 3b184a6e8f408eb370da26cf83d4beb2f2e34eea..55c80f618e61a5d27c8d67d5dd90d061963d5903 100644 (file)
@@ -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);