fix(query)[TD-31798]: Cleanup temporary object on array append failure
This commit is contained in:
parent
f551818b62
commit
392dc35102
|
@ -1020,7 +1020,10 @@ int32_t tsdbFSCreateRefSnapshotWithoutLock(STFileSystem *fs, TFileSetArray **fse
|
||||||
if (code) break;
|
if (code) break;
|
||||||
|
|
||||||
code = TARRAY2_APPEND(fsetArr[0], fset1);
|
code = TARRAY2_APPEND(fsetArr[0], fset1);
|
||||||
if (code) break;
|
if (code) {
|
||||||
|
tsdbTFileSetClear(&fset1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (code) {
|
if (code) {
|
||||||
|
|
Loading…
Reference in New Issue