fix:memory leak

This commit is contained in:
wangmm0220 2023-09-22 10:02:16 +08:00
parent 803b17a2db
commit 86a4bfe28d
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ int32_t tqSnapWrite(STqSnapWriter* pWriter, uint8_t* pData, uint32_t nData) {
STQ* pTq = pWriter->pTq;
SDecoder decoder = {0};
SDecoder* pDecoder = &decoder;
STqHandle handle;
STqHandle handle = {0};
tDecoderInit(pDecoder, pData + sizeof(SSnapDataHdr), nData - sizeof(SSnapDataHdr));
code = tDecodeSTqHandle(pDecoder, &handle);