Fix a small leak in an error situation.