Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
src/conf/domain_validate.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/conf/domain_validate.c b/src/conf/domain_validate.c
index df2ab47361..aab377fbbd 100644
--- a/src/conf/domain_validate.c
+++ b/src/conf/domain_validate.c
@@ -1261,8 +1261,7 @@ virDomainDefValidateAliases(const virDomainDef *def,
int ret = -1;
/* We are not storing copies of aliases. Don't free them. */
- if (!(data.aliases = virHashNew(NULL)))
- goto cleanup;
+ data.aliases = virHashNew(NULL);
if (virDomainDeviceInfoIterateFlags((virDomainDef *) def,
virDomainDeviceDefValidateAliasesIterator,
--
2.31.1