plug yet another one time leak

This commit is contained in:
Pierangelo Masarati 2005-11-09 02:52:28 +00:00
parent 2e6cd12216
commit 2132b8d57e

View File

@ -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 );
}