[SSSD] [PATCH] LDAP: Fix memory leaks in synchronous_tls_setup

Stephen Gallagher sgallagh at redhat.com
Fri Mar 23 11:48:38 UTC 2012


We were never freeing "result" if it was allocated by
ldap_result(). We were also not freeing "errmsg" if it was
allocated but ldap_parse_result() returned an error.

Also disambiguate error messages from ldap_parse_result() and
error messages from sss_ldap_get_diagnostic_msg() since they use
differing memory-management functions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-LDAP-Fix-memory-leaks-in-synchronous_tls_setup.patch
Type: text/x-patch
Size: 3507 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120323/43ac7514/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120323/43ac7514/attachment.sig>


More information about the sssd-devel mailing list