mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55: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)))
|
||||
return NULL;
|
||||
|
||||
if (!(bindings->objs = virHashNew(virObjectFreeHashData))) {
|
||||
virObjectUnref(bindings);
|
||||
return NULL;
|
||||
}
|
||||
bindings->objs = virHashNew(virObjectFreeHashData);
|
||||
|
||||
return bindings;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user