mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 14:10:39 -05:00
plug yet another one time leak
This commit is contained in:
parent
2e6cd12216
commit
2132b8d57e
1 changed files with 8 additions and 0 deletions
|
|
@ -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 a new issue