memdap cleanup