fix clean up coredump

This commit is contained in:
Hongze Cheng 2020-05-19 01:50:14 +00:00
parent 62c1f2f7b5
commit 5911bf64c3
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ STsdbMeta *tsdbInitMeta(char *rootDir, int32_t maxTables) {
STsdbMeta *pMeta = (STsdbMeta *)malloc(sizeof(STsdbMeta));
if (pMeta == NULL) return NULL;
pMeta->maxTables = maxTables;
pMeta->nTables = 0;
pMeta->superList = NULL;
pMeta->tables = (STable **)calloc(maxTables, sizeof(STable *));