From 21b31c0e493ef5cb37450585b36fb624d9aad1df Mon Sep 17 00:00:00 2001 From: yaojun Date: Mon, 17 Jun 2024 16:16:48 +0800 Subject: [PATCH] fix bug for release msg memory --- src/cm_mes/mes_func.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cm_mes/mes_func.c b/src/cm_mes/mes_func.c index 9429ebc..ef26737 100644 --- a/src/cm_mes/mes_func.c +++ b/src/cm_mes/mes_func.c @@ -993,9 +993,9 @@ void mes_notify_msg_recv(mes_message_t *msg) LOG_RUN_ERR("[mes]:mes notify msg recv cmd=%d, ruid=%llu(%llu-%llu) matched wrong rstatus:%d", (int32)msg->head->cmd, (uint64)msg->head->ruid, (uint64)MES_RUID_GET_RID(msg->head->ruid), (uint64)MES_RUID_GET_RSN(msg->head->ruid), (int32)room->room_status); - mes_release_message_buf(msg); } cm_spin_unlock(&room->lock); + mes_release_message_buf(msg); } else { cm_spin_unlock(&room->lock); MES_LOG_WAR_HEAD_EX(msg->head, "receive unmatch msg", room); -- Gitee