Revert "Revert "fix: coverity issues""

This reverts commit caa88bc54d.
This commit is contained in:
Ganlin Zhao 2022-10-25 09:42:26 +08:00
parent caa88bc54d
commit 35b78f596e
1 changed files with 1 additions and 0 deletions

View File

@ -5954,6 +5954,7 @@ int32_t tDecodeSMqDataRsp(SDecoder *pDecoder, SMqDataRsp *pRsp) {
if (pSW == NULL) return -1; if (pSW == NULL) return -1;
if (tDecodeSSchemaWrapper(pDecoder, pSW) < 0) return -1; if (tDecodeSSchemaWrapper(pDecoder, pSW) < 0) return -1;
taosArrayPush(pRsp->blockSchema, &pSW); taosArrayPush(pRsp->blockSchema, &pSW);
taosMemoryFree(pSW);
} }
if (pRsp->withTbName) { if (pRsp->withTbName) {