gallium: State when there are no memory leaks detected.

This commit is contained in:
José Fonseca
2008-11-13 20:34:10 +09:00
parent ee172bf067
commit e45773b3de

View File

@@ -265,6 +265,9 @@ debug_memory_end(unsigned long start_no)
size_t total_size = 0;
struct list_head *entry;
if(start_no == last_no)
return;
entry = list.prev;
for (; entry != &list; entry = entry->prev) {
struct debug_memory_header *hdr;
@@ -302,4 +305,7 @@ debug_memory_end(unsigned long start_no)
debug_printf("Total of %u KB of system memory apparently leaked\n",
(total_size + 1023)/1024);
}
else {
debug_printf("No memory leaks detected.\n");
}
}