This commit is contained in:
Hongze Cheng 2020-06-18 16:10:50 +00:00
parent eb8f74e952
commit 496c5da86c
2 changed files with 2 additions and 1 deletions

View File

@ -415,6 +415,7 @@ int tsdbCloseMeta(STsdbRepo *pRepo) {
while ((pNode = tdListPopHead(pMeta->superList)) != NULL) {
tdListNodeGetData(pMeta->superList, pNode, (void *)(&pTable));
tsdbFreeTable(pTable);
listNodeFree(pNode);
}
tsdbTrace("vgId:%d TSDB meta is closed", REPO_ID(pRepo));

View File

@ -83,7 +83,7 @@ int tdListPrepend(SList *list, void *data) {
}
int tdListAppend(SList *list, void *data) {
SListNode *node = (SListNode *)malloc(sizeof(SListNode) + list->eleSize);
SListNode *node = (SListNode *)calloc(1, sizeof(SListNode) + list->eleSize);
if (node == NULL) return -1;
memcpy((void *)(node->data), data, list->eleSize);