added utility to
freed memory.