diff options
author | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-11-13 20:34:10 +0900 |
---|---|---|
committer | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-11-17 12:36:07 +0900 |
commit | e45773b3de1bbd7db717336a1b5c964b6cdb718e (patch) | |
tree | a81b055b9cd3e2c6d3801ef3031465d4c2a15b5e | |
parent | ee172bf067d9a66faa9d57980970326b680df839 (diff) |
gallium: State when there are no memory leaks detected.
-rw-r--r-- | src/gallium/auxiliary/util/p_debug_mem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/p_debug_mem.c b/src/gallium/auxiliary/util/p_debug_mem.c index 9511479cbb..250fd60f63 100644 --- a/src/gallium/auxiliary/util/p_debug_mem.c +++ b/src/gallium/auxiliary/util/p_debug_mem.c @@ -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"); + } } |