fix leaks in free list