[td-11818]Fix invalid read in the unit test.
This commit is contained in:
parent
e67e7486ec
commit
0f9d860d4e
|
@ -537,7 +537,6 @@ TEST(testCase, create_topic_Test) {
|
||||||
if (taos_errno(pRes) != 0) {
|
if (taos_errno(pRes) != 0) {
|
||||||
printf("error in use db, reason:%s\n", taos_errstr(pRes));
|
printf("error in use db, reason:%s\n", taos_errstr(pRes));
|
||||||
}
|
}
|
||||||
taos_free_result(pRes);
|
|
||||||
|
|
||||||
TAOS_FIELD* pFields = taos_fetch_fields(pRes);
|
TAOS_FIELD* pFields = taos_fetch_fields(pRes);
|
||||||
ASSERT_TRUE(pFields == nullptr);
|
ASSERT_TRUE(pFields == nullptr);
|
||||||
|
|
|
@ -1706,7 +1706,7 @@ void scheduleFreeJob(void *job) {
|
||||||
|
|
||||||
tfree(pJob);
|
tfree(pJob);
|
||||||
|
|
||||||
qDebug("QID:%"PRIx64" job freed", queryId);
|
qDebug("QID:0x%"PRIx64" job freed", queryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
void schedulerFreeTaskList(SArray *taskList) {
|
void schedulerFreeTaskList(SArray *taskList) {
|
||||||
|
|
Loading…
Reference in New Issue