Cedar/IPC.c: Add hub release in NewIPC()

This commit is contained in:
domosekai committed 2021-07-12 08:37:12 +00:00
1 parent 26a27553b2
commit 7863ce8a8e
1 file changed
+2
+2
View File
@@ -497,6 +497,8 @@ IPC *NewIPC(CEDAR *cedar, char *client_name, char *postfix, char *hubname, char
ZeroIP4(&ipc->BroadcastAddress);
}
ReleaseHub(hub);
ZeroIP4(&ipc->ClientIPAddress);
MacToStr(macstr, sizeof(macstr), ipc->MacAddress);