Erase memory pages when they are freed

Thanks to renaudallard.