fix memory leaks

This commit is contained in:
localvar 2020-04-24 10:00:14 +08:00
parent 8317e1a6ad
commit 5ee943590c
2 changed files with 4 additions and 0 deletions

View File

@ -798,6 +798,7 @@ static void tSQLBinaryTraverseOnSkipList(
taosArrayPush(pResult, SL_GET_NODE_DATA(pNode)); taosArrayPush(pResult, SL_GET_NODE_DATA(pNode));
} }
} }
tSkipListDestroyIter(iter);
} }
@ -825,6 +826,8 @@ static void tQueryIndexlessColumn(SSkipList* pSkipList, tQueryInfo* pQueryInfo,
taosArrayPush(result, (void*)&table); taosArrayPush(result, (void*)&table);
} }
} }
tSkipListDestroyIter(iter);
} }

View File

@ -1436,6 +1436,7 @@ static int32_t doQueryTableList(STable* pSTable, SArray* pRes, tExprNode* pExpr)
convertQueryResult(pRes, pTableList); convertQueryResult(pRes, pTableList);
taosArrayDestroy(pTableList); taosArrayDestroy(pTableList);
free(schema);
return TSDB_CODE_SUCCESS; return TSDB_CODE_SUCCESS;
} }