]> git.sur5r.net Git - openldap/commitdiff
memory hanling cleanup
authorPierangelo Masarati <ando@openldap.org>
Tue, 13 Jul 2004 01:00:48 +0000 (01:00 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 13 Jul 2004 01:00:48 +0000 (01:00 +0000)
servers/slapd/overlays/rwm.c

index 13069fe0957318dab5a3b0525e35c0e9e20d5504..de376d406a94b3da6cb7b170b6a5f88635258896 100644 (file)
@@ -527,7 +527,8 @@ rwm_search( Operation *op, SlapReply *rs )
                goto error_return;
        }
 
-       cb = (slap_callback *)ch_malloc( sizeof( slap_callback ) );
+       cb = (slap_callback *) op->o_tmpcalloc( sizeof( slap_callback ),
+                       1, op->o_tmpmemctx );
        if ( cb == NULL ) {
                rc = LDAP_NO_MEMORY;
                goto error_return;