This commit is contained in:
dmchen 2023-09-19 15:19:03 +08:00
parent dbde1a4491
commit 084719e34e
2 changed files with 6 additions and 1 deletions

View File

@ -2622,6 +2622,9 @@ static FORCE_INLINE void tdDestroySVCreateTbReq(SVCreateTbReq* req) {
} else if (req->type == TSDB_NORMAL_TABLE) {
taosMemoryFreeClear(req->ntb.schemaRow.pSchema);
}
if(pReq->sql != NULL){
taosMemoryFree(pReq->sql);
}
}
typedef struct {

View File

@ -50,7 +50,9 @@
#define FREESQL() \
do { \
taosMemoryFree(pReq->sql); \
if(pReq->sql != NULL){ \
taosMemoryFree(pReq->sql); \
} \
pReq->sql = NULL; \
} while (0)