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

Potential memory leak -02. #405

Open
rachyyyy opened this issue Sep 3, 2022 · 0 comments
Open

Potential memory leak -02. #405

rachyyyy opened this issue Sep 3, 2022 · 0 comments

Comments

@rachyyyy
Copy link

rachyyyy commented Sep 3, 2022

Potential memory leak in kuhl_m_lsadump_dc.c line 220. The return value of ldap_get_dn is not freed before being passed to the function will cause a memory leak. Doc says "The ldap_get_dn() routine takes an entry as returned by ldap_first_entry(3) or ldap_next_entry(3) and returns a copy of the entry's DN. Space for the DN will be obtained dynamically and should be freed by the caller using ldap_memfree(3). Notes:These routines dynamically allocate memory that the caller must free."

1662196238389

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

No branches or pull requests

1 participant