From: Pierangelo Masarati Date: Fri, 6 Jan 2006 16:34:20 +0000 (+0000) Subject: resource release (more is needed: a report is coming...) X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~431 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=906acc2b30d65eb4462c016117303317542735e2;p=openldap resource release (more is needed: a report is coming...) --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 526d3169f2..a6deda4a99 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -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 );