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

UTILS: fix names array memory leak #1073

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

Conversation

MamziB
Copy link
Collaborator

@MamziB MamziB commented Feb 6, 2025

we see memory leaks from CI tests in #1023

This PR fixes these memory leaks. One instance of leaks can happen when a function such ucc_cl_basic_get_lib_attr() gets called multiple times, which can potentially lead to calling ucc_config_names_array_dup on the same cl_lib object. Each time this duplicate function is called, we were allocating new memory for names array, without making sure that that array has already been allocated or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants