fix: coverity issues

CID: 399471
This commit is contained in:
Ganlin Zhao 2022-10-17 10:59:32 +08:00
parent c695606184
commit 51e5522ca4
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ tmq_list_t* build_topic_list() {
tmq_list_t* topicList = tmq_list_new();
int32_t code = tmq_list_append(topicList, "topicname");
if (code) {
tmq_list_destroy(topicList);
return NULL;
}
return topicList;