Erase memory pages when empty and freed