From: Pierangelo Masarati Date: Tue, 13 Jul 2004 01:00:48 +0000 (+0000) Subject: memory hanling cleanup X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~76 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d6e3c9300134f460b759803c67564b5b1af309b3;p=openldap memory hanling cleanup --- diff --git a/servers/slapd/overlays/rwm.c b/servers/slapd/overlays/rwm.c index 13069fe095..de376d406a 100644 --- a/servers/slapd/overlays/rwm.c +++ b/servers/slapd/overlays/rwm.c @@ -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;