mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
virDomainMomentObjListNew: 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
cf1234abf1
commit
bb3a57c8b0
@ -274,10 +274,6 @@ virDomainMomentObjListNew(void)
|
||||
|
||||
moments = g_new0(virDomainMomentObjList, 1);
|
||||
moments->objs = virHashNew(virDomainMomentObjListDataFree);
|
||||
if (!moments->objs) {
|
||||
VIR_FREE(moments);
|
||||
return NULL;
|
||||
}
|
||||
return moments;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user