mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
memory hanling cleanup
This commit is contained in:
parent
7011c4f3e2
commit
d6e3c93001
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user