]> git.sur5r.net Git - openldap/commitdiff
make sure o_csn is freed
authorPierangelo Masarati <ando@openldap.org>
Sat, 27 Sep 2008 11:06:31 +0000 (11:06 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 27 Sep 2008 11:06:31 +0000 (11:06 +0000)
servers/slapd/operation.c

index b3ec0372bc4d389353227b4b128ddd22d5e66c01..cc0354b303d8f11876a7864829324037bf779811 100644 (file)
@@ -111,6 +111,11 @@ slap_op_free( Operation *op, void *ctx )
        }
 #endif /* defined( LDAP_SLAPI ) */
 
+       if ( !BER_BVISNULL( &op->o_csn ) ) {
+               op->o_tmpfree( op->o_csn.bv_val, op->o_tmpmemctx );
+               BER_BVZERO( &op->o_csn );
+       }
+
        opbuf = (OperationBuffer *) op;
        memset( opbuf, 0, sizeof(*opbuf) );
        op->o_hdr = &opbuf->ob_hdr;