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

Fix two memory leaks related to ci_client_library #61

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

Conversation

syntax-case
Copy link

While switching to 0.6 I came across two memory leaks when using ci_client_library_init()/_release().

The strdup call in mem.c:1026 is never cleaned up.

ci_client_library_init calls ci_cfg_lib_init, but ci_client_library_release doesn't call ci_cfg_lib_destroy. As a result the cfg_params_allocator is never destroyed.

Added a call to ci_cfg_lib_destroy to ci_client_library_release

Added a free to pool_allocator_destroy to free the ci_mem_allocator_t's
name that's created by strdup in ci_create_pool_allocator
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