Lines Matching refs:mem_list
65 static mem_list_t mem_list; variable
67 static ptr_list_t mem_list; variable
119 mem_list.push_front(mem); in alloc_mem()
121 mem_list.push_front(ptr); in alloc_mem()
133 for (mem_iter_t i = mem_list.begin(); i != mem_list.end(); ++i) { in free_mem()
137 mem_list.erase(i); in free_mem()
142 mem_list.remove(ptr); in free_mem()
153 if (mem_list.size() != 0) in clean_up_mem()
154 printf("mem_list leaks %ld objects\n", mem_list.size()); in clean_up_mem()
156 for (mem_iter_t i = mem_list.begin(); i != mem_list.end(); ) { in clean_up_mem()
160 i = mem_list.erase(i); in clean_up_mem()
163 free_ptr_list(mem_list); in clean_up_mem()