]> git.sur5r.net Git - openldap/commitdiff
plug leak in previous commit
authorPierangelo Masarati <ando@openldap.org>
Tue, 4 Jan 2011 01:13:58 +0000 (01:13 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 4 Jan 2011 01:13:58 +0000 (01:13 +0000)
contrib/slapd-modules/vc/vc.c

index bcfb7a6458a2af2be6b6a277ffc279fe43f0f930..cb0c47b087dd416e3ea40db1f934f4e6ce6fc6dd 100644 (file)
@@ -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;
 }