Fix the size of a memory allocation