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 1 commit into
base: master
Choose a base branch
from

Conversation

JohannesKauffmann
Copy link

@JohannesKauffmann JohannesKauffmann commented Jan 23, 2024

Don't overwrite the original pointer returned by ec_find_adapters(), otherwise the linked list is leaked. Instead, save original pointer to the head of the list use and adapters as a temporary variable. Pass the original pointer to ec_free_adapters().

For win32, ec_free_adapters() was missing entirely.

@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, save original pointer to
the head of the list use and `adapters` as a temporary variable. Pass
the original pointer to ec_free_adapters().

For win32, ec_free_adapters() was missing entirely.
@JohannesKauffmann
Copy link
Author

ping @ArthurKetels @nakarlsson

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