From 4b9042c3d696b7987db0b65d8daecafb97ec501f Mon Sep 17 00:00:00 2001 From: ruanshudong Date: Fri, 25 Feb 2022 11:19:14 +0800 Subject: [PATCH] fix tc_epoller crash & update changelist --- Changelist-3.x.md | 16 ++++++++++++++++ util/src/tc_epoller.cpp | 6 ++++++ 2 files changed, 22 insertions(+) diff --git a/Changelist-3.x.md b/Changelist-3.x.md index 80751f3..8e88f9d 100644 --- a/Changelist-3.x.md +++ b/Changelist-3.x.md @@ -1,3 +1,19 @@ +# v3.0.4 20220225 + +### en + +- support tarscpp server run container +- Fix memory leak caused by timer +- Fix crash caused by transceiver in case of connection timeout +- FIx crash caused by epoller + +### cn + +- 支持框架容器化运行 +- 修复定时器带来的内存泄露 +- 修复 tc_transceiver 在连接超时情况下可能带来的 crash +- 修复 tc_epoller 可能带来的 crash + # v3.0.4 20220118 ### en diff --git a/util/src/tc_epoller.cpp b/util/src/tc_epoller.cpp index a30fe03..14066bc 100755 --- a/util/src/tc_epoller.cpp +++ b/util/src/tc_epoller.cpp @@ -302,6 +302,12 @@ void TC_Epoller::create(int size, bool createNotify) void TC_Epoller::close() { + if(_notify != nullptr) + { + delete _notify; + _notify = nullptr; + } + #if TARGET_PLATFORM_LINUX || TARGET_PLATFORM_IOS ::close(_iEpollfd); _iEpollfd = -1;