mirror of https://gitee.com/openkylin/libvirt.git
virNWFilterLearnInit: `virHashNew` cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
4d9c5524b4
commit
c7560d0141
|
@ -774,16 +774,8 @@ virNWFilterLearnInit(void)
|
|||
|
||||
VIR_DEBUG("Initializing IP address learning");
|
||||
threadsTerminate = false;
|
||||
|
||||
pendingLearnReq = virHashNew(freeLearnReqEntry);
|
||||
if (!pendingLearnReq)
|
||||
return -1;
|
||||
|
||||
ifaceLockMap = virHashNew(g_free);
|
||||
if (!ifaceLockMap) {
|
||||
virNWFilterLearnShutdown();
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue