From 54e2b1464e733d81123acd24aad2442596341128 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 4 Jan 2011 01:13:58 +0000 Subject: [PATCH] plug leak in previous commit --- contrib/slapd-modules/vc/vc.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 2.39.5