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

rdkafkacpp_int.h:974: bad call to free ? #3194

Closed
dcb314 opened this issue Dec 31, 2020 · 1 comment
Closed

rdkafkacpp_int.h:974: bad call to free ? #3194

dcb314 opened this issue Dec 31, 2020 · 1 comment
Milestone

Comments

@dcb314
Copy link

dcb314 commented Dec 31, 2020

rdkafkacpp_int.h: In member function 'virtual RdKafka::ErrorCode RdKafka::HandleImpl::oauthbearer_set_token(const string&, int64_t, const string&, const std::__cxx11::list<std::__cxx11::basic_string >&, std::string&)':
rdkafkacpp_int.h:974:15: warning: 'void free(void*)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
974 | free(extensions_copy);
| ~~~~^~~~~~~~~~~~~~~~~
rdkafkacpp_int.h:961:76: note: returned from 'void* operator new '
961 | const char **extensions_copy = new const char *[extensions.size()];
| ^

@edenhill
Copy link
Contributor

Yes, that should be a delete .., will fix. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants