diff --git a/src/rpc/src/rpcMain.c b/src/rpc/src/rpcMain.c index 99905d4ed3f2486dedb5c17ae869c3f0aeb9a5eb..0410281f0dee3c7f685417b08620aa8d2c9aec49 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; }