]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/add.c
remove dbenv->lock_put() call from transaction-protected operations
[openldap] / servers / slapd / add.c
index 5d222c5af0a81a920c87ad5f7610e94770339e58..3d308ea8c19a66ab3c9496358a49040d334cc159 100644 (file)
@@ -137,7 +137,6 @@ do_add( Connection *conn, Operation *op )
 #endif
                        send_ldap_result( conn, op, rc = LDAP_PROTOCOL_ERROR,
                                NULL, "no values for attribute type", NULL, NULL );
-                       free( tmp.sml_type.bv_val );
                        goto done;
                }
                mod  = (Modifications *) ch_malloc( sizeof(Modifications) );
@@ -181,7 +180,7 @@ do_add( Connection *conn, Operation *op )
                goto done;
        }
 
-       Statslog( LDAP_DEBUG_STATS, "conn=%ld op=%d ADD dn=\"%s\"\n",
+       Statslog( LDAP_DEBUG_STATS, "conn=%lu op=%lu ADD dn=\"%s\"\n",
            op->o_connid, op->o_opid, e->e_dn, 0, 0 );
 
        if( e->e_nname.bv_len == 0 ) {