“b061ab88c2ec17c133b9f5a310c7b667d6a4801a”上不存在“tests/script/tsim/backup/clusterSimCase/client-07.sim”
未验证 提交 6919da89 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #18114 from taosdata/szhou/fixbugs

fix: fix mem leak during tsartDecode of tDeserializeSUseDbBatchRsp when crashgen and stream and subscribe
...@@ -2591,7 +2591,10 @@ int32_t tDeserializeSUseDbBatchRsp(void *buf, int32_t bufLen, SUseDbBatchRsp *pR ...@@ -2591,7 +2591,10 @@ int32_t tDeserializeSUseDbBatchRsp(void *buf, int32_t bufLen, SUseDbBatchRsp *pR
for (int32_t i = 0; i < numOfBatch; ++i) { for (int32_t i = 0; i < numOfBatch; ++i) {
SUseDbRsp usedbRsp = {0}; SUseDbRsp usedbRsp = {0};
if (tDeserializeSUseDbRspImp(&decoder, &usedbRsp) < 0) return -1; if (tDeserializeSUseDbRspImp(&decoder, &usedbRsp) < 0) {
tDecoderClear(&decoder);
return -1;
}
taosArrayPush(pRsp->pArray, &usedbRsp); taosArrayPush(pRsp->pArray, &usedbRsp);
} }
tEndDecode(&decoder); tEndDecode(&decoder);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册