Skip to content

Commit

Permalink
fix: first call free beofore close conn
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanKuanJun committed May 30, 2023
1 parent be372d9 commit 1014f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/benchTmq.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ static int create_topic() {
if (taos_errno(res) != 0) {
errorPrint("failed to create topic: %s, reason: %s\n",
pConsumerInfo->topicName[i], taos_errstr(res));
closeBenchConn(conn);
taos_free_result(res);
closeBenchConn(conn);
return -1;
}

Expand Down

0 comments on commit 1014f0d

Please sign in to comment.