提交 5a320604 编写于 作者: Z zhaoyanggh

Merge branch 'test/TD-6167' of https://github.com/taosdata/TDengine into test/TD-6167

......@@ -1503,14 +1503,6 @@ TAOS_STMT* taos_stmt_init(TAOS* taos) {
return NULL;
}
if (TSDB_CODE_SUCCESS != tscAllocPayload(&pSql->cmd, TSDB_DEFAULT_PAYLOAD_SIZE)) {
free(pSql);
free(pStmt);
terrno = TSDB_CODE_TSC_OUT_OF_MEMORY;
tscError("failed to malloc payload buffer");
return NULL;
}
tsem_init(&pSql->rspSem, 0, 0);
pSql->signature = pSql;
pSql->pTscObj = pObj;
......@@ -1812,7 +1804,7 @@ int taos_stmt_close(TAOS_STMT* stmt) {
}
}
taos_free_result(pStmt->pSql);
tscFreeRegisteredSqlObj(pStmt->pSql));
tfree(pStmt);
STMT_RET(TSDB_CODE_SUCCESS);
}
......
......@@ -586,7 +586,7 @@ static bool tscKillQueryInDnode(SSqlObj* pSql) {
tscBuildAndSendRequest(pSql, NULL);
return false;
}
tscFreeRegisteredSqlObj
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册