Core/Networking: Fix memory leak (#22923)

Fix memory leak reported by ASan happening when ports fail to bind in Authserver
This commit is contained in:
Giacomo Pozzoni
2019-01-10 20:02:09 +01:00
committed by GitHub
parent 545bee0496
commit 57d7b19452

View File

@@ -53,6 +53,7 @@ public:
if (!acceptor->Bind())
{
TC_LOG_ERROR("network", "StartNetwork failed to bind socket acceptor");
delete acceptor;
return false;
}