[TD-225] free content while in-compatible client connect to taosd and send hb message.
This commit is contained in:
parent
93c666bbb9
commit
db6f936c93
|
@ -239,6 +239,7 @@ static int32_t mnodeProcessHeartBeatMsg(SMnodeMsg *pMsg) {
|
||||||
|
|
||||||
SCMHeartBeatMsg *pHBMsg = pMsg->rpcMsg.pCont;
|
SCMHeartBeatMsg *pHBMsg = pMsg->rpcMsg.pCont;
|
||||||
if (taosCheckVersion(pHBMsg->clientVer, version, 3) != TSDB_CODE_SUCCESS) {
|
if (taosCheckVersion(pHBMsg->clientVer, version, 3) != TSDB_CODE_SUCCESS) {
|
||||||
|
rpcFreeCont(pRsp);
|
||||||
return TSDB_CODE_TSC_INVALID_VERSION; // todo change the error code
|
return TSDB_CODE_TSC_INVALID_VERSION; // todo change the error code
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue