fix(tsdb): fix memory leak.

This commit is contained in:
Haojun Liao 2024-08-27 17:57:16 +08:00
parent d89806970e
commit d3f6892345
1 changed files with 4 additions and 1 deletions

View File

@ -581,7 +581,10 @@ int32_t tsdbTFileSetInitRef(STsdb *pTsdb, const STFileSet *fset1, STFileSet **fs
}
code = TARRAY2_APPEND(fset[0]->lvlArr, lvl);
if (code) return code;
if (code) {
tsdbTFileSetClear(fset);
return code;
}
}
return 0;