mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 14:35:25 +00:00
virNWFilterBindingObjListNew: virHashNew
cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
ac184eea7c
commit
0609995d43
@ -66,10 +66,7 @@ virNWFilterBindingObjListNew(void)
|
|||||||
if (!(bindings = virObjectRWLockableNew(virNWFilterBindingObjListClass)))
|
if (!(bindings = virObjectRWLockableNew(virNWFilterBindingObjListClass)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!(bindings->objs = virHashNew(virObjectFreeHashData))) {
|
bindings->objs = virHashNew(virObjectFreeHashData);
|
||||||
virObjectUnref(bindings);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return bindings;
|
return bindings;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user