fix invalid read

This commit is contained in:
Hongze Cheng 2022-05-06 08:34:38 +00:00
parent 81e73f1a35
commit b41c2f3279
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ static int vnodeProcessCreateTbReq(SVnode *pVnode, int64_t version, void *pReq,
goto _exit;
}
rsp.pArray = taosArrayInit(sizeof(cRsp), req.nReqs);
rsp.pArray = taosArrayInit(req.nReqs, sizeof(cRsp));
if (rsp.pArray == NULL) {
rcode = -1;
terrno = TSDB_CODE_OUT_OF_MEMORY;