Merge pull request #16581 from taosdata/fix/fixCreateTbRspIssue

fix: fix create table rsp free issue
This commit is contained in:
Shengliang Guan 2022-09-01 18:53:19 +08:00 committed by GitHub
commit 1dd3afc6c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -496,6 +496,7 @@ static int32_t vnodeProcessCreateTbReq(SVnode *pVnode, int64_t version, void *pR
// loop to create table // loop to create table
for (int32_t iReq = 0; iReq < req.nReqs; iReq++) { for (int32_t iReq = 0; iReq < req.nReqs; iReq++) {
pCreateReq = req.pReqs + iReq; pCreateReq = req.pReqs + iReq;
memset(&cRsp, 0, sizeof(cRsp));
if ((terrno = grantCheck(TSDB_GRANT_TIMESERIES)) < 0) { if ((terrno = grantCheck(TSDB_GRANT_TIMESERIES)) < 0) {
rcode = -1; rcode = -1;