From: Pierangelo Masarati Date: Wed, 9 Nov 2005 02:52:28 +0000 (+0000) Subject: plug yet another one time leak X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~60 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2132b8d57ea587d5aa05625da5c29d5934630375;p=openldap plug yet another one time leak --- diff --git a/servers/slapd/overlays/retcode.c b/servers/slapd/overlays/retcode.c index 0fe2a04907..845370a812 100644 --- a/servers/slapd/overlays/retcode.c +++ b/servers/slapd/overlays/retcode.c @@ -1044,6 +1044,14 @@ retcode_db_destroy( BackendDB *be ) ch_free( rdi ); } + if ( !BER_BVISNULL( &rd->rd_pdn ) ) { + ber_memfree( rd->rd_pdn.bv_val ); + } + + if ( !BER_BVISNULL( &rd->rd_npdn ) ) { + ber_memfree( rd->rd_npdn.bv_val ); + } + ber_memfree( rd ); }