Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
src/conf/virnwfilterbindingobjlist.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/conf/virnwfilterbindingobjlist.c b/src/conf/virnwfilterbindingobjlist.c
index 1f19e27eb0..470a30ca90 100644
--- a/src/conf/virnwfilterbindingobjlist.c
+++ b/src/conf/virnwfilterbindingobjlist.c
@@ -66,10 +66,7 @@ virNWFilterBindingObjListNew(void)
if (!(bindings = virObjectRWLockableNew(virNWFilterBindingObjListClass)))
return NULL;
- if (!(bindings->objs = virHashNew(virObjectFreeHashData))) {
- virObjectUnref(bindings);
- return NULL;
- }
+ bindings->objs = virHashNew(virObjectFreeHashData);
return bindings;
}
--
2.31.1