[PATCH v2 5/8] domain_conf: extend switch with if in virDomainChrDefFree()