From: Pierangelo Masarati Date: Wed, 9 Nov 2005 02:48:37 +0000 (+0000) Subject: plug one time leak X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~61 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2e6cd122166f6e4db106c4671e4e5b56ecf6af6b;p=openldap plug one time leak --- 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 );