fix: memory leak
This commit is contained in:
parent
22372ad1e0
commit
bdfef853e5
|
@ -299,7 +299,7 @@ int32_t tqTaosxScanLog(STQ* pTq, STqHandle* pHandle, SSubmitReq* pReq, STaosxRsp
|
||||||
taosArrayDestroyP(pSchemas, (FDelete)tDeleteSSchemaWrapper);
|
taosArrayDestroyP(pSchemas, (FDelete)tDeleteSSchemaWrapper);
|
||||||
pBlocks = taosArrayInit(0, sizeof(SSDataBlock));
|
pBlocks = taosArrayInit(0, sizeof(SSDataBlock));
|
||||||
pSchemas = taosArrayInit(0, sizeof(void*));
|
pSchemas = taosArrayInit(0, sizeof(void*));
|
||||||
return -1;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (pHandle->fetchMeta) {
|
if (pHandle->fetchMeta) {
|
||||||
|
|
|
@ -61,6 +61,7 @@ int32_t tqOffsetRestoreFromFile(STqOffsetStore* pStore, const char* fname) {
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
taosMemoryFree(memBuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
taosCloseFile(&pFile);
|
taosCloseFile(&pFile);
|
||||||
|
|
Loading…
Reference in New Issue