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

Destructor function #260

Open
fredrikdanielmoller opened this issue Dec 3, 2020 · 0 comments · May be fixed by #390
Open

Destructor function #260

fredrikdanielmoller opened this issue Dec 3, 2020 · 0 comments · May be fixed by #390
Labels
enhancement New feature or request

Comments

@fredrikdanielmoller
Copy link
Collaborator

Currently, the private function pnet_init_only() is called in the unit tests. This does not allocate the pnet_t struct, but it does allocate memory for mutexes. The allocated memory is never released.

Fix this by creating a destructor function and call it from the tests' TearDown() function.

@fredrikdanielmoller fredrikdanielmoller added the enhancement New feature or request label Dec 3, 2020
@asade89 asade89 linked a pull request Mar 29, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant