newMemoryInstance(): a NULL pointer is normal if the size is zero