fix: OVERLAPPEDPLUS memory leak when exit controller

This commit is contained in:
yuanyuanxiang
2024-12-29 23:33:33 +08:00
parent 37d96a7f66
commit 01d11f5fa3
3 changed files with 13 additions and 4 deletions

View File

@@ -3,6 +3,7 @@
#include "2015Remote.h"
#include <iostream>
#if USING_ZLIB
#include "zlib.h"
#define Z_FAILED(p) (Z_OK != (p))
@@ -113,6 +114,7 @@ IOCPServer::~IOCPServer(void)
{
CONTEXT_OBJECT *ContextObject = m_ContextConnectionList.GetHead();
RemoveStaleContext(ContextObject);
SAFE_DELETE(ContextObject->olps);
}
while (!m_ContextFreePoolList.IsEmpty())