Correcting typo to clean up on realloc failure