mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 01:38:06 +02:00
gallium: State when there are no memory leaks detected.
This commit is contained in:
parent
ee172bf067
commit
e45773b3de
1 changed files with 6 additions and 0 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue