Merge pull request #1957 from taosdata/feature/2.0tsdb
fix clean up coredump
This commit is contained in:
commit
c0d16836db
|
@ -154,6 +154,7 @@ STsdbMeta *tsdbInitMeta(char *rootDir, int32_t maxTables) {
|
||||||
STsdbMeta *pMeta = (STsdbMeta *)malloc(sizeof(STsdbMeta));
|
STsdbMeta *pMeta = (STsdbMeta *)malloc(sizeof(STsdbMeta));
|
||||||
if (pMeta == NULL) return NULL;
|
if (pMeta == NULL) return NULL;
|
||||||
|
|
||||||
|
pMeta->maxTables = maxTables;
|
||||||
pMeta->nTables = 0;
|
pMeta->nTables = 0;
|
||||||
pMeta->superList = NULL;
|
pMeta->superList = NULL;
|
||||||
pMeta->tables = (STable **)calloc(maxTables, sizeof(STable *));
|
pMeta->tables = (STable **)calloc(maxTables, sizeof(STable *));
|
||||||
|
|
Loading…
Reference in New Issue