[asterisk-commits] russell: branch 1.4 r43383 - /branches/1.4/main/astmm.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Sep 20 15:13:17 MST 2006


Author: russell
Date: Wed Sep 20 17:13:16 2006
New Revision: 43383

URL: http://svn.digium.com/view/asterisk?rev=43383&view=rev
Log:
Fix the total allocation count and total byte count in the memory summary

Modified:
    branches/1.4/main/astmm.c

Modified: branches/1.4/main/astmm.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/astmm.c?rev=43383&r1=43382&r2=43383&view=diff
==============================================================================
--- branches/1.4/main/astmm.c (original)
+++ branches/1.4/main/astmm.c Wed Sep 20 17:13:16 2006
@@ -378,8 +378,8 @@
 	
 	/* 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);



More information about the asterisk-commits mailing list