diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index d1f8a76db1..75f21dc6c7 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -7540,6 +7540,7 @@ static virDomainDefPtr virDomainDefParseXML(virCapsPtr caps, if (i != 0) { virDomainReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", _("Only the first console can be a serial port")); + virDomainChrDefFree(chr); goto error; }