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

Memory cleanups #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

treveradams
Copy link
Contributor

Yes, these are only on shutdown. However, I do think it is best to be clean.

@@ -496,6 +496,7 @@ int release_services()
ci_list_destroy(service_extra_data_list[i].option_handlers);
service_extra_data_list[i].option_handlers = NULL;
}
free(service_data(service_list[i]));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is does not looks correct. The service_data function will return a pointer to an item of the service_extra_data_list array. This item is not an allocated memory block.

In the other hand the service_extra_data_list array needs to be released.

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.

2 participants