From 7d0abd1d4e45984d3a7b6bd8e6a4ba9a6805d9fb Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Thu, 21 May 2020 04:56:48 +0000 Subject: [PATCH] free message is not in right way --- src/rpc/src/rpcMain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/src/rpcMain.c b/src/rpc/src/rpcMain.c index 99905d4ed3..0410281f0d 100644 --- a/src/rpc/src/rpcMain.c +++ b/src/rpc/src/rpcMain.c @@ -869,7 +869,7 @@ static void *rpcProcessMsgFromPeer(SRecvInfo *pRecv) { if (pRecv->ip==0 && pConn) { rpcProcessBrokenLink(pConn); - tfree(pRecv->msg); + rpcFreeMsg(pRecv->msg); return NULL; } @@ -894,7 +894,7 @@ static void *rpcProcessMsgFromPeer(SRecvInfo *pRecv) { } } - if (code) tfree(pRecv->msg); // parsing failed, msg shall be freed + if (code) rpcFreeMsg(pRecv->msg); // parsing failed, msg shall be freed return pConn; }