We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if (conf_err) { rd_kafka_conf_destroy(conf); RAISE(RD_KAFKA_CONF_RES(conf_err), "Failed to configure new kafka consumer (%s)", error_msg); } rd_kafka_t *handler = rd_kafka_new(RD_KAFKA_CONSUMER, conf, error_msg, sizeof(error_msg)); if (handler == NULL) { RAISE(RD_KAFKA_RESP_ERR__FAIL, "Failed to create new kafka consumer (%s)", error_msg); }
this leaks rd_kafka_conf when rd_kafka_new fails
rd_kafka_conf
rd_kafka_new
The text was updated successfully, but these errors were encountered:
Add rd_kafka_conf_destroy in error handler (fix issue #6).
31f1ba1
Thanks. I added the missing rd_kafka_conf_destroy (plus another in ocaml_kafka_new_producer).
Sorry, something went wrong.
No branches or pull requests
this leaks
rd_kafka_conf
whenrd_kafka_new
failsThe text was updated successfully, but these errors were encountered: