From f66a76d8b6496423b41101e165c445bf138017ef Mon Sep 17 00:00:00 2001 From: azw Date: Mon, 27 Nov 2023 03:09:43 +0000 Subject: [PATCH] 1 --- f8/app.cc | 7 +------ f8/app.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/f8/app.cc b/f8/app.cc index f50f1ce..46e9069 100644 --- a/f8/app.cc +++ b/f8/app.cc @@ -247,6 +247,7 @@ namespace f8 MsgHdr* hdr = list_first_entry(work_list, MsgHdr, entry); list_del_init(&hdr->entry); user_app_->DispatchSocketMsg(hdr); + --msgnode_size_; MsgHdr::Destroy(hdr); } } @@ -281,10 +282,4 @@ namespace f8 NotifyLoopCond(); } - void App::FreeSocketMsg(MsgHdr* hdr) - { - --msgnode_size_; - free(hdr); - } - } diff --git a/f8/app.h b/f8/app.h index d6fd304..1172fa0 100644 --- a/f8/app.h +++ b/f8/app.h @@ -57,7 +57,6 @@ namespace f8 const char *msgbody, int bodylen, int tag); - void FreeSocketMsg(MsgHdr* hdr); char** GetArgv() { return argv_; } int GetArgc() { return argc_; } long long GetMsgNodeSize() { return msgnode_size_; }