Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx> --- src/conf/virnetworkobj.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/conf/virnetworkobj.c b/src/conf/virnetworkobj.c index 341d6b4292..66f916c749 100644 --- a/src/conf/virnetworkobj.c +++ b/src/conf/virnetworkobj.c @@ -350,10 +350,7 @@ virNetworkObjListNew(void) if (!(nets = virObjectRWLockableNew(virNetworkObjListClass))) return NULL; - if (!(nets->objs = virHashNew(virObjectFreeHashData))) { - virObjectUnref(nets); - return NULL; - } + nets->objs = virHashNew(virObjectFreeHashData); return nets; } -- 2.31.1