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

Stephen Gallagher sgallagh at redhat.com
Tue Mar 27 00:18:15 UTC 2012


On Fri, 2012-03-23 at 13:55 +0100, Jan Zelený wrote:
> > 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.
> 
> Ack,
> I didn't manage to trigger the routine so only sanity check performed, the 
> code is ok.


Pushed to master and sssd-1-8.
-------------- 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/20120326/16aa21d7/attachment.sig>


More information about the sssd-devel mailing list