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

fixed memory leaks #3

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

fixed memory leaks #3

wants to merge 1 commit into from

Conversation

ritz123
Copy link

@ritz123 ritz123 commented Nov 29, 2019

I fixed the following valgrind reported memory leaks with this fix

==13135==
==13135== 40 bytes in 4 blocks are definitely lost in loss record 1,451 of 2,109
==13135== at 0x4C2D03B: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==13135== by 0xB2C8BE9: strdup (strdup.c:42)
==13135== by 0x6E62B77: function_conversation(int, pam_message const**, pam_response**, void*)
==13135== by 0x4E40AFD: _get_authtok (pam_ldap.c:3354)
==13135== by 0x4E41058: pam_sm_authenticate (pam_ldap.c:3485)
==13135== by 0xC0B1443: _pam_dispatch_aux (pam_dispatch.c:110)
==13135== by 0xC0B1443: _pam_dispatch (pam_dispatch.c:426)
==13135== by 0xC0B0D7A: pam_authenticate (pam_auth.c:34)

==13135==
==13135== 58 (32 direct, 26 indirect) bytes in 1 blocks are definitely lost in loss record 1,594 of 2,109
==13135== at 0x4C2EEEE: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==13135== by 0x4E3C3DB: _read_config (pam_ldap.c:930)
==13135== by 0x4E3FEB2: _pam_ldap_get_session (pam_ldap.c:2935)
==13135== by 0x4E40E80: pam_sm_authenticate (pam_ldap.c:3450)
==13135== by 0xC0B1443: _pam_dispatch_aux (pam_dispatch.c:110)
==13135== by 0xC0B1443: _pam_dispatch (pam_dispatch.c:426)
==13135== by 0xC0B0D7A: pam_authenticate (pam_auth.c:34)

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