fix: fix memory leak during crashgen stream and subscribe
This commit is contained in:
parent
70b937cfac
commit
c6efc1ed84
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue