Fix a memory leak in the schema parsing.