diff --git a/include/common/tmsg.h b/include/common/tmsg.h index c973e7364f..88a53d25a8 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -2622,7 +2622,7 @@ static FORCE_INLINE void tdDestroySVCreateTbReq(SVCreateTbReq* req) { } else if (req->type == TSDB_NORMAL_TABLE) { taosMemoryFreeClear(req->ntb.schemaRow.pSchema); } - if(pReq->sql != NULL){ + if(req->sql != NULL){ taosMemoryFree(pReq->sql); } }