mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
plug yet another one time leak
This commit is contained in:
parent
2e6cd12216
commit
2132b8d57e
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user