Merge branch 'hotfix/TD-2904' of https://github.com/taosdata/TDengine into TD-2904

This commit is contained in:
yihaoDeng 2021-02-01 08:05:43 +00:00
commit 9c7eb6f94e
2 changed files with 2 additions and 1 deletions

View File

@ -908,6 +908,7 @@ int main(int argc, char *argv[]) {
}
pthread_join(read_id, NULL);
taos_close(rInfo->taos);
free(rInfo);
}
taos_cleanup();

View File

@ -279,7 +279,7 @@ tSQLExpr *tSqlExprCreate(tSQLExpr *pLeft, tSQLExpr *pRight, int32_t optrType) {
pExpr->nSQLOptr = optrType;
pExpr->pLeft = pLeft;
if (pRight == NULL) {
if (pLeft != NULL && pRight == NULL) {
pRight = calloc(1, sizeof(tSQLExpr));
}