]> git.sur5r.net Git - openldap/commitdiff
fix memory handling
authorPierangelo Masarati <ando@openldap.org>
Fri, 16 Dec 2005 16:19:17 +0000 (16:19 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 16 Dec 2005 16:19:17 +0000 (16:19 +0000)
servers/slapd/back-ldap/search.c

index dde7795a85935e7d18f2a93580e529971eb1da58..166e360d71e3ccc922d81d8a813f2f832363c4c0 100644 (file)
@@ -299,11 +299,11 @@ retry:
                                rc = rs->sr_err = send_search_entry( op, rs );
                                if ( !BER_BVISNULL( &ent.e_name ) ) {
                                        assert( ent.e_name.bv_val != bdn.bv_val );
-                                       free( ent.e_name.bv_val );
+                                       op->o_tmpfree( ent.e_name.bv_val, op->o_tmpmemctx );
                                        BER_BVZERO( &ent.e_name );
                                }
                                if ( !BER_BVISNULL( &ent.e_nname ) ) {
-                                       free( ent.e_nname.bv_val );
+                                       op->o_tmpfree( ent.e_nname.bv_val, op->o_tmpmemctx );
                                        BER_BVZERO( &ent.e_nname );
                                }
                                entry_clean( &ent );