[TD-225] free content while in-compatible client connect to taosd and send hb message.

This commit is contained in:
Haojun Liao 2020-10-30 16:32:18 +08:00
parent 93c666bbb9
commit db6f936c93
1 changed files with 1 additions and 0 deletions

View File

@ -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
}