]> git.sur5r.net Git - openldap/commitdiff
plugged possible memory leak (e.g. when deleting syncrepl config)
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 24 Mar 2011 02:22:10 +0000 (02:22 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 24 Mar 2011 02:22:10 +0000 (02:22 +0000)
servers/slapd/config.c

index 8163e387235566791f4337291388eab7aca289d4..925eea5724095925c6f83b98d371051941fa582f 100644 (file)
@@ -1726,6 +1726,10 @@ void bindconf_free( slap_bindconf *bc ) {
                bc->sb_tls_crlcheck = NULL;
        }
 #endif
+       if ( bc->sb_tls_ctx ) {
+               ldap_pvt_tls_ctx_free( bc->sb_tls_ctx );
+               bc->sb_tls_ctx = NULL;
+       }
 #endif
 }