mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-29 18:09:26 -05:00
resource release (more is needed: a report is coming...)
This commit is contained in:
parent
18beda81a0
commit
906acc2b30
1 changed files with 9 additions and 1 deletions
|
|
@ -1273,7 +1273,7 @@ syncprov_add_slog( Operation *op, struct berval *csn )
|
|||
se->se_next = NULL;
|
||||
se->se_tag = op->o_tag;
|
||||
|
||||
se->se_uuid.bv_val = (char *)(se+1);
|
||||
se->se_uuid.bv_val = (char *)(&se[1]);
|
||||
AC_MEMCPY( se->se_uuid.bv_val, opc->suuid.bv_val, opc->suuid.bv_len );
|
||||
se->se_uuid.bv_len = opc->suuid.bv_len;
|
||||
|
||||
|
|
@ -2425,6 +2425,14 @@ syncprov_db_destroy(
|
|||
|
||||
if ( si ) {
|
||||
if ( si->si_logs ) {
|
||||
slog_entry *se = si->si_logs->sl_head;
|
||||
|
||||
while ( se ) {
|
||||
slog_entry *se_next = se->se_next;
|
||||
ch_free( se );
|
||||
se = se_next;
|
||||
}
|
||||
|
||||
ch_free( si->si_logs );
|
||||
}
|
||||
ldap_pvt_thread_mutex_destroy( &si->si_mods_mutex );
|
||||
|
|
|
|||
Loading…
Reference in a new issue