Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
src/conf/virdomainobjlist.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/conf/virdomainobjlist.c b/src/conf/virdomainobjlist.c
index 5f9fd9aabc..43d09692a9 100644
--- a/src/conf/virdomainobjlist.c
+++ b/src/conf/virdomainobjlist.c
@@ -75,12 +75,8 @@ virDomainObjList *virDomainObjListNew(void)
if (!(doms = virObjectRWLockableNew(virDomainObjListClass)))
return NULL;
- if (!(doms->objs = virHashNew(virObjectFreeHashData)) ||
- !(doms->objsName = virHashNew(virObjectFreeHashData))) {
- virObjectUnref(doms);
- return NULL;
- }
-
+ doms->objs = virHashNew(virObjectFreeHashData);
+ doms->objsName = virHashNew(virObjectFreeHashData);
return doms;
}
--
2.31.1