@@ -2785,6 +2785,7 @@ rd_kafka_CreateTopicsRequest (rd_kafka_broker_t *rkb,
2785
2785
2786
2786
if (rd_list_cnt (new_topics ) == 0 ) {
2787
2787
rd_snprintf (errstr , errstr_size , "No topics to create" );
2788
+ rd_kafka_replyq_destroy (& replyq );
2788
2789
return RD_KAFKA_RESP_ERR__INVALID_ARG ;
2789
2790
}
2790
2791
@@ -2794,6 +2795,7 @@ rd_kafka_CreateTopicsRequest (rd_kafka_broker_t *rkb,
2794
2795
rd_snprintf (errstr , errstr_size ,
2795
2796
"Topic Admin API (KIP-4) not supported "
2796
2797
"by broker, requires broker version >= 0.10.2.0" );
2798
+ rd_kafka_replyq_destroy (& replyq );
2797
2799
return RD_KAFKA_RESP_ERR__UNSUPPORTED_FEATURE ;
2798
2800
}
2799
2801
@@ -2802,6 +2804,7 @@ rd_kafka_CreateTopicsRequest (rd_kafka_broker_t *rkb,
2802
2804
rd_snprintf (errstr , errstr_size ,
2803
2805
"CreateTopics.validate_only=true not "
2804
2806
"supported by broker" );
2807
+ rd_kafka_replyq_destroy (& replyq );
2805
2808
return RD_KAFKA_RESP_ERR__UNSUPPORTED_FEATURE ;
2806
2809
}
2807
2810
@@ -2927,6 +2930,7 @@ rd_kafka_DeleteTopicsRequest (rd_kafka_broker_t *rkb,
2927
2930
2928
2931
if (rd_list_cnt (del_topics ) == 0 ) {
2929
2932
rd_snprintf (errstr , errstr_size , "No topics to delete" );
2933
+ rd_kafka_replyq_destroy (& replyq );
2930
2934
return RD_KAFKA_RESP_ERR__INVALID_ARG ;
2931
2935
}
2932
2936
@@ -2936,6 +2940,7 @@ rd_kafka_DeleteTopicsRequest (rd_kafka_broker_t *rkb,
2936
2940
rd_snprintf (errstr , errstr_size ,
2937
2941
"Topic Admin API (KIP-4) not supported "
2938
2942
"by broker, requires broker version >= 0.10.2.0" );
2943
+ rd_kafka_replyq_destroy (& replyq );
2939
2944
return RD_KAFKA_RESP_ERR__UNSUPPORTED_FEATURE ;
2940
2945
}
2941
2946
@@ -2995,6 +3000,7 @@ rd_kafka_CreatePartitionsRequest (rd_kafka_broker_t *rkb,
2995
3000
2996
3001
if (rd_list_cnt (new_parts ) == 0 ) {
2997
3002
rd_snprintf (errstr , errstr_size , "No partitions to create" );
3003
+ rd_kafka_replyq_destroy (& replyq );
2998
3004
return RD_KAFKA_RESP_ERR__INVALID_ARG ;
2999
3005
}
3000
3006
@@ -3004,6 +3010,7 @@ rd_kafka_CreatePartitionsRequest (rd_kafka_broker_t *rkb,
3004
3010
rd_snprintf (errstr , errstr_size ,
3005
3011
"CreatePartitions (KIP-195) not supported "
3006
3012
"by broker, requires broker version >= 1.0.0" );
3013
+ rd_kafka_replyq_destroy (& replyq );
3007
3014
return RD_KAFKA_RESP_ERR__UNSUPPORTED_FEATURE ;
3008
3015
}
3009
3016
@@ -3100,6 +3107,7 @@ rd_kafka_AlterConfigsRequest (rd_kafka_broker_t *rkb,
3100
3107
if (rd_list_cnt (configs ) == 0 ) {
3101
3108
rd_snprintf (errstr , errstr_size ,
3102
3109
"No config resources specified" );
3110
+ rd_kafka_replyq_destroy (& replyq );
3103
3111
return RD_KAFKA_RESP_ERR__INVALID_ARG ;
3104
3112
}
3105
3113
@@ -3109,6 +3117,7 @@ rd_kafka_AlterConfigsRequest (rd_kafka_broker_t *rkb,
3109
3117
rd_snprintf (errstr , errstr_size ,
3110
3118
"AlterConfigs (KIP-133) not supported "
3111
3119
"by broker, requires broker version >= 0.11.0" );
3120
+ rd_kafka_replyq_destroy (& replyq );
3112
3121
return RD_KAFKA_RESP_ERR__UNSUPPORTED_FEATURE ;
3113
3122
}
3114
3123
@@ -3119,6 +3128,7 @@ rd_kafka_AlterConfigsRequest (rd_kafka_broker_t *rkb,
3119
3128
"AlterConfigs.incremental=true (KIP-248) "
3120
3129
"not supported by broker, "
3121
3130
"requires broker version >= 2.0.0" );
3131
+ rd_kafka_replyq_destroy (& replyq );
3122
3132
return RD_KAFKA_RESP_ERR__UNSUPPORTED_FEATURE ;
3123
3133
}
3124
3134
@@ -3157,6 +3167,7 @@ rd_kafka_AlterConfigsRequest (rd_kafka_broker_t *rkb,
3157
3167
"entries: only set supported "
3158
3168
"by this broker" );
3159
3169
rd_kafka_buf_destroy (rkbuf );
3170
+ rd_kafka_replyq_destroy (& replyq );
3160
3171
return RD_KAFKA_RESP_ERR__UNSUPPORTED_FEATURE ;
3161
3172
}
3162
3173
}
@@ -3208,6 +3219,7 @@ rd_kafka_DescribeConfigsRequest (rd_kafka_broker_t *rkb,
3208
3219
if (rd_list_cnt (configs ) == 0 ) {
3209
3220
rd_snprintf (errstr , errstr_size ,
3210
3221
"No config resources specified" );
3222
+ rd_kafka_replyq_destroy (& replyq );
3211
3223
return RD_KAFKA_RESP_ERR__INVALID_ARG ;
3212
3224
}
3213
3225
@@ -3217,6 +3229,7 @@ rd_kafka_DescribeConfigsRequest (rd_kafka_broker_t *rkb,
3217
3229
rd_snprintf (errstr , errstr_size ,
3218
3230
"DescribeConfigs (KIP-133) not supported "
3219
3231
"by broker, requires broker version >= 0.11.0" );
3232
+ rd_kafka_replyq_destroy (& replyq );
3220
3233
return RD_KAFKA_RESP_ERR__UNSUPPORTED_FEATURE ;
3221
3234
}
3222
3235
0 commit comments