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

tests: fix linked list leaks #782

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JohannesKauffmann
Copy link

Don't overwrite the original pointer returned by ec_find_adapters(), otherwise the linked list is leaked. Instead, use a temporary variable, and pass the original pointer to ec_free_adapters().

Don't overwrite the original pointer returned by ec_find_adapters(),
otherwise the linked list is leaked. Instead, use a temporary variable,
and pass the original pointer to ec_free_adapters().
@JohannesKauffmann JohannesKauffmann changed the title simple_ng: fix linked list leak simple_ng/simple_test: fix linked list leak Jan 23, 2024
@JohannesKauffmann JohannesKauffmann changed the title simple_ng/simple_test: fix linked list leak tests: fix linked list leaks Jan 23, 2024
Don't overwrite the original pointer returned by ec_find_adapters(),
otherwise the linked list is leaked. Instead, use a temporary variable,
and pass the original pointer to ec_free_adapters().
Don't overwrite the original pointer returned by ec_find_adapters(),
otherwise the linked list is leaked. Instead, use a temporary variable,
and pass the original pointer to ec_free_adapters().
Don't overwrite the original pointer returned by ec_find_adapters(),
otherwise the linked list is leaked. Instead, use a temporary variable,
and pass the original pointer to ec_free_adapters().
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

Successfully merging this pull request may close these issues.

1 participant