From 8931d68e3704c8112fec1fbb1281b6a0bf960c49 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 27 Aug 2007 07:14:04 +0000 Subject: [PATCH] close LDIF handler (valgrind) --- servers/slapd/slapcommon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index 0ce9fc9e3b..5df0045557 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -760,4 +760,8 @@ void slap_tool_destroy( void ) if ( !BER_BVISNULL( &authcDN ) ) { ch_free( authcDN.bv_val ); } + + if ( ldiffp && ldiffp != &dummy ) { + ldif_close( ldiffp ); + } } -- 2.39.5