From db6f936c934776f733a777c2526dd5929f6a8b7a Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Fri, 30 Oct 2020 16:32:18 +0800 Subject: [PATCH] [TD-225] free content while in-compatible client connect to taosd and send hb message. --- src/mnode/src/mnodeShow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mnode/src/mnodeShow.c b/src/mnode/src/mnodeShow.c index 655fe71259..d759352f71 100644 --- a/src/mnode/src/mnodeShow.c +++ b/src/mnode/src/mnodeShow.c @@ -239,6 +239,7 @@ static int32_t mnodeProcessHeartBeatMsg(SMnodeMsg *pMsg) { SCMHeartBeatMsg *pHBMsg = pMsg->rpcMsg.pCont; if (taosCheckVersion(pHBMsg->clientVer, version, 3) != TSDB_CODE_SUCCESS) { + rpcFreeCont(pRsp); return TSDB_CODE_TSC_INVALID_VERSION; // todo change the error code } -- GitLab