From: Pierangelo Masarati Date: Tue, 4 Jan 2011 01:13:58 +0000 (+0000) Subject: plug leak in previous commit X-Git-Tag: MIGRATION_CVS2GIT~262 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=54e2b1464e733d81123acd24aad2442596341128;p=openldap plug leak in previous commit --- diff --git a/contrib/slapd-modules/vc/vc.c b/contrib/slapd-modules/vc/vc.c index bcfb7a6458..cb0c47b087 100644 --- a/contrib/slapd-modules/vc/vc.c +++ b/contrib/slapd-modules/vc/vc.c @@ -397,10 +397,18 @@ done:; } } + if ( vc.ctrls ) { + ldap_controls_free( vc.ctrls ); + vc.ctrls = NULL; + } + if ( !BER_BVISNULL( &ndn ) ) { op->o_tmpfree( ndn.bv_val, op->o_tmpmemctx ); + BER_BVZERO( &ndn ); } + op->o_tmpfree( reqdata.bv_val, op->o_tmpmemctx ); + BER_BVZERO( &reqdata ); return rs->sr_err; }