[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#4053) connectionless memleak in ldap_ld_free
Full_Name: Mike Patnode
Version: 2.2.26
OS: RedHat
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (63.199.144.29)
BTW: These are all being found via valgrind 3.0.1
--- ./openldap-2.2.26/libraries/libldap/unbind.c.orig Thu Sep 29 16:50:27 2005
+++ ./openldap-2.2.26/libraries/libldap/unbind.c Thu Sep 29 16:48:57 2005
@@ -159,6 +159,13 @@
ld->ld_options.ldo_sctrls = NULL;
}
+#if LDAP_CONNECTIONLESS
+ if ( ld->ld_options.ldo_peer != NULL ) {
+ LDAP_FREE(ld->ld_options.ldo_peer);
+ ld->ld_options.ldo_peer = NULL;
+ }
+#endif
+
#ifdef HAVE_CYRUS_SASL
if ( ld->ld_options.ldo_def_sasl_mech != NULL ) {
LDAP_FREE( ld->ld_options.ldo_def_sasl_mech );