Exit parse on malloc errors.