From: Pierangelo Masarati Date: Thu, 3 Nov 2005 22:51:27 +0000 (+0000) Subject: plug one-time leak X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~108 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1249fa93d501b4e422c108bc081ff586a167eebe;p=openldap plug one-time leak --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 561b5b2fd1..10ce96d7c5 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1222,7 +1222,6 @@ syncprov_checkpoint( Operation *op, SlapReply *rs, slap_overinst *on ) Operation opm; struct berval bv[2]; slap_callback cb = {0}; - int manage = get_manageDSAit(op); mod.sml_values = bv; bv[1].bv_val = NULL; @@ -1243,7 +1242,9 @@ syncprov_checkpoint( Operation *op, SlapReply *rs, slap_overinst *on ) opm.o_bd->bd_info = on->on_info->oi_orig; opm.o_managedsait = SLAP_CONTROL_NONCRITICAL; opm.o_bd->be_modify( &opm, rs ); - opm.o_managedsait = manage; + if ( mod.sml_next != NULL ) { + slap_mods_free( mod.sml_next, 1 ); + } } static void