From 84aa07f036d0c66b6279339bf267e972e0d3959d Mon Sep 17 00:00:00 2001 From: heppen Date: Sat, 25 May 2024 17:02:21 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(common):=20bug=20fix:=20mem?= =?UTF-8?q?=20leak?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/pwrbuffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/src/pwrbuffer.c b/common/src/pwrbuffer.c index 0bf4293..fcc7688 100644 --- a/common/src/pwrbuffer.c +++ b/common/src/pwrbuffer.c @@ -139,6 +139,8 @@ void ReleaseResultWaitingMsgNode(ResultWaitingMsgNode *node) pthread_cond_destroy((pthread_cond_t *)&(node->waitCond)); pthread_mutex_unlock((pthread_mutex_t *)&(node->waitMutex)); pthread_mutex_destroy((pthread_mutex_t *)&(node->waitMutex)); + free(node); + node = NULL; } void InitResultWaitingList(ResultWaitingMsgList *rwm) -- Gitee