From 68c5a7fe5018c847c2cf0fe2abca1a468927d67b Mon Sep 17 00:00:00 2001 From: slzhou Date: Tue, 19 Sep 2023 10:38:35 +0800 Subject: [PATCH] fix: fix mem leak --- include/common/tmsg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/common/tmsg.h b/include/common/tmsg.h index 0dbfa18833..d9e034a159 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -2610,7 +2610,8 @@ static FORCE_INLINE void tdDestroySVCreateTbReq(SVCreateTbReq* req) { if (NULL == req) { return; } - + + taosMemoryFreeClear(req->sql); taosMemoryFreeClear(req->name); taosMemoryFreeClear(req->comment); if (req->type == TSDB_CHILD_TABLE) {