TD-353
This commit is contained in:
parent
eb8f74e952
commit
496c5da86c
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue