From 2e6cd122166f6e4db106c4671e4e5b56ecf6af6b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 9 Nov 2005 02:48:37 +0000 Subject: [PATCH] plug one time leak --- servers/slapd/overlays/retcode.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/overlays/retcode.c b/servers/slapd/overlays/retcode.c index e285d57c31..0fe2a04907 100644 --- a/servers/slapd/overlays/retcode.c +++ b/servers/slapd/overlays/retcode.c @@ -1030,6 +1030,10 @@ retcode_db_destroy( BackendDB *be ) ber_memfree( rdi->rdi_matched.bv_val ); } + if ( rdi->rdi_ref ) { + ber_bvarray_free( rdi->rdi_ref ); + } + BER_BVZERO( &rdi->rdi_e.e_name ); BER_BVZERO( &rdi->rdi_e.e_nname );