diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 0b9d2d9d52..0f306b7e15 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -6476,7 +6476,7 @@ virDomainDeviceInfoParseXML(xmlNodePtr node, ret = 0; cleanup: if (ret < 0) - VIR_FREE(info->alias); + virDomainDeviceInfoClear(info); VIR_FREE(type); VIR_FREE(rombar); return ret;