From f6ab01ced629fe22a8097a73ae9f355701ecc7d4 Mon Sep 17 00:00:00 2001 From: ip_gpu Date: Thu, 2 Nov 2017 10:33:16 +0500 Subject: [PATCH] fixed from PVS-Studio V773 The function was exited without releasing the 'NetMgr' pointer. A memory leak is possible. main.cpp 156 --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 286c471..edf1751 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -152,6 +152,7 @@ void* PlayersThread(void* Parameter) } Thread::Wait(100); } + delete NetMgr; Thread::Exit(); return 0; }