[PATCH 5/9] domain_conf: replace switch with if in virDomainChrDefFree()