Refactoring allocation of memory for errormaxv.