提交 dc3e3fd7 编写于 作者: wmmhello's avatar wmmhello

[TD-6167]<fix> add null pointer protection

上级 9501c655
......@@ -1986,7 +1986,6 @@ TAOS_RES *taos_stmt_use_result(TAOS_STMT* stmt) {
return NULL;
}
TAOS_RES* result = pStmt->pSql;
pStmt->pSql = NULL;
return result;
}
......
......@@ -468,7 +468,6 @@ void taos_stmt_use_result_query(void *taos, char *col, int type) {
assert(taos_stmt_close(stmt) == 0);
free(params);
free(stmt_sql);
taos_free_result(result);
}
void taos_stmt_use_result_test() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册