From fa4aa9845faca4cc5c54a8f838a384759493f498 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Mon, 14 Mar 2011 17:29:55 +0000 Subject: [PATCH] plugged possible memory leak (e.g. when deleting syncrepl config) --- servers/slapd/config.c | 4 ++++ 1 file changed, 4 insertions(+) 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 } -- 2.39.5