[Validator] Fixed memory leak in ValidatorBuilder