]> git.sur5r.net Git - openldap/commitdiff
fix pre-allocated entry/attribute handling
authorPierangelo Masarati <ando@openldap.org>
Tue, 29 Aug 2006 17:09:08 +0000 (17:09 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 29 Aug 2006 17:09:08 +0000 (17:09 +0000)
servers/slapd/back-ldap/search.c

index 16b08fe8a388e972c4482fb67618acb2e8d6cd17..a122b85dfb31fd9ee523e2ed9a30a9905f765f78 100644 (file)
@@ -579,7 +579,7 @@ ldap_build_entry(
                                        "%s ldap_build_entry: "
                                        "slap_bv2undef_ad(%s): %s\n",
                                        op->o_log_prefix, a.bv_val, text );
-                               ch_free( attr );
+                               attr_free( attr );
                                continue;
                        }
                }
@@ -602,7 +602,7 @@ ldap_build_entry(
                         */
                        ( void )ber_scanf( &ber, "x" /* [W] */ );
 
-                       ch_free( attr );
+                       attr_free( attr );
                        continue;
                }
                
@@ -683,7 +683,7 @@ ldap_build_entry(
 
                                if ( rc != LDAP_SUCCESS ) {
                                        BER_BVZERO( &attr->a_nvals[i] );
-                                       ch_free( attr );
+                                       attr_free( attr );
                                        goto next_attr;
                                }
                        }