Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Issue 4142 Patch #4809

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/rdkafka.c
Original file line number Diff line number Diff line change
Expand Up @@ -2707,7 +2707,6 @@ rd_kafka_t *rd_kafka_new(rd_kafka_type_t type,
/* If on_new() interceptors have been called we also need
* to allow interceptor clean-up by calling on_destroy() */
rd_kafka_interceptors_on_destroy(rk);

/* If rk_conf is a struct-copy of the application configuration
* we need to avoid rk_conf fields from being freed from
* rd_kafka_destroy_internal() since they belong to app_conf.
Expand All @@ -2720,9 +2719,9 @@ rd_kafka_t *rd_kafka_new(rd_kafka_type_t type,
rd_kafka_assignors_term(rk);
rd_kafka_interceptors_destroy(&rk->rk_conf);
memset(&rk->rk_conf, 0, sizeof(rk->rk_conf));
} else {
rd_kafka_destroy_internal(rk);
}

rd_kafka_destroy_internal(rk);
rd_kafka_destroy_final(rk);

rd_kafka_set_last_error(ret_err, ret_errno);
Expand Down