rem: } for (mem_iter_t i = mem_list.begin(); i != mem_list.end(); ) {
add: for (mem_iter_t i = mem_list.begin(); i != mem_list.end(); ) {
context: static void clean_up_mem(){#ifdef DEBUG	if (mem_list.size() != 0) {		printf("mem_list leaks %ld objects\n", mem_list.size());	}	for (mem_iter_t i = mem_list.begin(); i != mem_list.end(); )	{		printf("%p allocated at %s:%ld\n", i->ptr, i->file, i->line);			free(i->ptr);		free(i->file);		i = mem_list.erase(i);	}#else	free_ptr_list(mem_list);#endif}