Skip to content

Commit

Permalink
Address comment and RD_IF_FREE fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
milindl committed Sep 4, 2023
1 parent bdd8a4b commit 6239372
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/rdkafka.c
Original file line number Diff line number Diff line change
Expand Up @@ -4797,7 +4797,7 @@ static void rd_kafka_ListGroups_resp_cb(rd_kafka_t *rk,
state->wait_cnt++;
error = rd_kafka_DescribeGroupsRequest(
rkb, 0, grps, i,
rd_false /* include_authorized_operations */,
rd_false /* don't include authorized operations */,
RD_KAFKA_REPLYQ(state->q, 0),
rd_kafka_DescribeGroups_resp_cb, state);
if (error) {
Expand Down
6 changes: 2 additions & 4 deletions src/rdkafka_admin.c
Original file line number Diff line number Diff line change
Expand Up @@ -8238,8 +8238,7 @@ rd_kafka_DescribeTopicsResponse_parse(rd_kafka_op_t *rko_req,
return RD_KAFKA_RESP_ERR_NO_ERROR;

err:
if (rko_result)
rd_kafka_op_destroy(rko_result);
RD_IF_FREE(rko_result, rd_kafka_op_destroy);
rd_snprintf(errstr, errstr_size,
"DescribeTopics response protocol parse failure: %s",
rd_kafka_err2str(reply->rkbuf_err));
Expand Down Expand Up @@ -8491,8 +8490,7 @@ rd_kafka_DescribeClusterResponse_parse(rd_kafka_op_t *rko_req,
return RD_KAFKA_RESP_ERR_NO_ERROR;

err:
if (rko_result)
rd_kafka_op_destroy(rko_result);
RD_IF_FREE(rko_result, rd_kafka_op_destroy);
rd_snprintf(errstr, errstr_size,
"DescribeCluster response protocol parse failure: %s",
rd_kafka_err2str(reply->rkbuf_err));
Expand Down

0 comments on commit 6239372

Please sign in to comment.