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