fix memory leak

This commit is contained in:
Hongze Cheng 2023-01-30 11:40:41 +08:00
parent 76e3720530
commit 9502fb3633
1 changed files with 1 additions and 0 deletions

View File

@ -1939,6 +1939,7 @@ int32_t tsdbSnapWriterClose(STsdbSnapWriter** ppWriter, int8_t rollback) {
for (int32_t iBuf = 0; iBuf < sizeof(pWriter->aBuf) / sizeof(uint8_t*); iBuf++) {
tFree(pWriter->aBuf[iBuf]);
}
tsdbFSDestroy(&pWriter->fs);
taosMemoryFree(pWriter);
*ppWriter = NULL;