fix memory leak

This commit is contained in:
Hongze Cheng 2023-06-20 20:10:57 +08:00
parent f8437789f9
commit 413d00db9e
1 changed files with 1 additions and 0 deletions

View File

@ -672,6 +672,7 @@ int32_t tsdbFSCreateCopySnapshot(STFileSystem *fs, TFileSetArray **fsetArr) {
int32_t tsdbFSDestroyCopySnapshot(TFileSetArray **fsetArr) {
if (fsetArr[0]) {
TARRAY2_DESTROY(fsetArr[0], tsdbTFileSetClear);
taosMemoryFree(fsetArr[0]);
fsetArr[0] = NULL;
}
return 0;