fix: Memory leak after delete client #143

This commit is contained in:
yuanyuanxiang
2025-07-04 04:54:53 +08:00
parent 64bebb1b86
commit 7f5b409c5c
6 changed files with 27 additions and 11 deletions

View File

@@ -120,6 +120,9 @@ VOID IOCPUDPServer::Send2Client(CONTEXT_OBJECT* ContextObject, PBYTE szBuffer, U
ContextObject->OutCompressedBuffer.GetBufferLength(),
(CHAR*)ContextObject->OutCompressedBuffer.GetBuffer(),
};
if (buf.len > 1200) {
Mprintf("UDP large packet may lost: %d bytes\n", buf.len);
}
DWORD sent = 0;
CONTEXT_UDP* ctx = (CONTEXT_UDP*)ContextObject;
int err = WSASendTo(