Protect mallocation