This commit is contained in:
dmchen 2023-09-19 14:40:48 +08:00
parent ee913cbfbc
commit dbde1a4491
2 changed files with 5 additions and 1 deletions

View File

@ -6924,7 +6924,9 @@ void tDestroySVCreateTbReq(SVCreateTbReq *pReq, int32_t flags) {
} }
} }
taosMemoryFree(pReq->sql); if(pReq->sql != NULL){
taosMemoryFree(pReq->sql);
}
pReq->sql = NULL; pReq->sql = NULL;
} }

View File

@ -694,10 +694,12 @@ static int32_t mndProcessDropTopicReq(SRpcMsg *pReq) {
if (pTopic == NULL) { if (pTopic == NULL) {
if (dropReq.igNotExists) { if (dropReq.igNotExists) {
mInfo("topic:%s, not exist, ignore not exist is set", dropReq.name); mInfo("topic:%s, not exist, ignore not exist is set", dropReq.name);
tFreeSMDropTopicReq(&dropReq);
return 0; return 0;
} else { } else {
terrno = TSDB_CODE_MND_TOPIC_NOT_EXIST; terrno = TSDB_CODE_MND_TOPIC_NOT_EXIST;
mError("topic:%s, failed to drop since %s", dropReq.name, terrstr()); mError("topic:%s, failed to drop since %s", dropReq.name, terrstr());
tFreeSMDropTopicReq(&dropReq);
return -1; return -1;
} }
} }