]> git.sur5r.net Git - openldap/commitdiff
plugged possible memory leak (e.g. when deleting syncrepl config)
authorRalf Haferkamp <ralf@openldap.org>
Mon, 14 Mar 2011 17:29:55 +0000 (17:29 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Mon, 14 Mar 2011 17:29:55 +0000 (17:29 +0000)
servers/slapd/config.c

index 199955871afb0749c57f1497ae7781b104d62cc2..3201e1865c90ad9314d8c3788d077e6e11191add 100644 (file)
@@ -1786,6 +1786,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
 }