Skip to content

Improve valgrind rule for PR_strdup #157

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

Merged
merged 1 commit into from
Jan 10, 2018
Merged

Conversation

tiran
Copy link
Member

@tiran tiran commented Jan 10, 2018

libldap's NSS engine has one known memory leak. One block of memory is
leaked one time only. The existing rule only matches when all debug
symbols are installed. The new rule should work without debug symbols.

Closes: #156
Signed-off-by: Christian Heimes cheimes@redhat.com

libldap's NSS engine has one known memory leak. One block of memory is
leaked one time only. The existing rule only matches when all debug
symbols are installed. The new rule should work without debug symbols.

Closes: python-ldap#156
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@encukou
Copy link
Member

encukou commented Jan 10, 2018

What's the chance of a false positive here?
Another approach would be to document that the debug symbols are necessary.

@tiran
Copy link
Member Author

tiran commented Jan 10, 2018

The changes are pretty low to zero. Also any memory leak in the callstack of ldap_set_option is a leak inside libldap_r, not a leak in our code.

@encukou encukou merged commit abcd2e9 into python-ldap:master Jan 10, 2018
@encukou
Copy link
Member

encukou commented Jan 10, 2018

Thanks!

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