plugins/out_kafka/librdkafka-1.5.0/src/rdkafka_assignor.c
void rd_kafka_group_member_clear (rd_kafka_group_member_t *rkgm) {
        if (rkgm->rkgm_subscription)
                rd_kafka_topic_partition_list_destroy(rkgm->rkgm_subscription);

        if (rkgm->rkgm_assignment)
                rd_kafka_topic_partition_list_destroy(rkgm->rkgm_assignment);

        rd_list_destroy(&rkgm->rkgm_eligible);

        if (rkgm->rkgm_member_id)
                rd_kafkap_str_destroy(rkgm->rkgm_member_id);

        if (rkgm->rkgm_group_instance_id)
                rd_kafkap_str_destroy(rkgm->rkgm_group_instance_id);

        if (rkgm->rkgm_userdata)
                rd_kafkap_bytes_destroy(rkgm->rkgm_userdata);

        if (rkgm->rkgm_member_metadata)
                rd_kafkap_bytes_destroy(rkgm->rkgm_member_metadata);

        memset(rkgm, 0, sizeof(*rkgm));
}
/**
 * Clear out and free any memory used by the member, but not the rkgm itself.
 */
Clear out and free any memory used by the member, but not the rkgm itself.
Clear out and free any memory used by the member but not the rkgm itself .
void rd_kafka_group_member_clear (rd_kafka_group_member_t *rkgm) {
        if (rkgm->rkgm_subscription)
                rd_kafka_topic_partition_list_destroy(rkgm->rkgm_subscription);
        if (rkgm->rkgm_assignment)
                rd_kafka_topic_partition_list_destroy(rkgm->rkgm_assignment);
        rd_list_destroy(&rkgm->rkgm_eligible);
        if (rkgm->rkgm_member_id)
                rd_kafkap_str_destroy(rkgm->rkgm_member_id);
        if (rkgm->rkgm_group_instance_id)
                rd_kafkap_str_destroy(rkgm->rkgm_group_instance_id);
        if (rkgm->rkgm_userdata)
                rd_kafkap_bytes_destroy(rkgm->rkgm_userdata);
        if (rkgm->rkgm_member_metadata)
                rd_kafkap_bytes_destroy(rkgm->rkgm_member_metadata);
        memset(rkgm, 0, sizeof(*rkgm));
}
void rd_kafka_group_member_clear ( rd_kafka_group_member_t * rkgm ) { if ( rkgm -> rkgm_subscription ) rd_kafka_topic_partition_list_destroy ( rkgm -> rkgm_subscription ) ; if ( rkgm -> rkgm_assignment ) rd_kafka_topic_partition_list_destroy ( rkgm -> rkgm_assignment ) ; rd_list_destroy ( & rkgm -> rkgm_eligible ) ; if ( rkgm -> rkgm_member_id ) rd_kafkap_str_destroy ( rkgm -> rkgm_member_id ) ; if ( rkgm -> rkgm_group_instance_id ) rd_kafkap_str_destroy ( rkgm -> rkgm_group_instance_id ) ; if ( rkgm -> rkgm_userdata ) rd_kafkap_bytes_destroy ( rkgm -> rkgm_userdata ) ; if ( rkgm -> rkgm_member_metadata ) rd_kafkap_bytes_destroy ( rkgm -> rkgm_member_metadata ) ; memset ( rkgm , 0 , sizeof ( * rkgm ) ) ; }
Clear out and free any memory used by the member, but not the rkgm itself.
Clear out and free any memory used by the member but not the rkgm itself .