fix memory leak
This commit is contained in:
parent
f8437789f9
commit
413d00db9e
|
@ -672,6 +672,7 @@ int32_t tsdbFSCreateCopySnapshot(STFileSystem *fs, TFileSetArray **fsetArr) {
|
||||||
int32_t tsdbFSDestroyCopySnapshot(TFileSetArray **fsetArr) {
|
int32_t tsdbFSDestroyCopySnapshot(TFileSetArray **fsetArr) {
|
||||||
if (fsetArr[0]) {
|
if (fsetArr[0]) {
|
||||||
TARRAY2_DESTROY(fsetArr[0], tsdbTFileSetClear);
|
TARRAY2_DESTROY(fsetArr[0], tsdbTFileSetClear);
|
||||||
|
taosMemoryFree(fsetArr[0]);
|
||||||
fsetArr[0] = NULL;
|
fsetArr[0] = NULL;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue