From: Ralf Haferkamp Date: Mon, 14 Mar 2011 17:29:55 +0000 (+0000) Subject: plugged possible memory leak (e.g. when deleting syncrepl config) X-Git-Tag: MIGRATION_CVS2GIT~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fa4aa9845faca4cc5c54a8f838a384759493f498;p=openldap plugged possible memory leak (e.g. when deleting syncrepl config) --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 199955871a..3201e1865c 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -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 }