From 084719e34e28665f093951f7f04dca4f970a2f51 Mon Sep 17 00:00:00 2001 From: dmchen Date: Tue, 19 Sep 2023 15:19:03 +0800 Subject: [PATCH] ci break --- include/common/tmsg.h | 3 +++ source/common/src/tmsg.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/common/tmsg.h b/include/common/tmsg.h index d9e034a159..c973e7364f 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -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 { diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index a268a3547a..1426ac01fc 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -50,7 +50,9 @@ #define FREESQL() \ do { \ - taosMemoryFree(pReq->sql); \ + if(pReq->sql != NULL){ \ + taosMemoryFree(pReq->sql); \ + } \ pReq->sql = NULL; \ } while (0)