mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 20:49:35 -05:00
Plug SLAPI leak
This commit is contained in:
parent
eee84463c0
commit
25e145f8c8
1 changed files with 2 additions and 1 deletions
|
|
@ -373,7 +373,8 @@ send_ldap_response(
|
|||
#ifdef LDAP_SLAPI
|
||||
slapi_pblock_set( op->o_pb, SLAPI_RESULT_CODE, (void *)rs->sr_err );
|
||||
slapi_pblock_set( op->o_pb, SLAPI_RESULT_MATCHED, ( rs->sr_matched != NULL ) ? (void *)ch_strdup( rs->sr_matched ) : NULL );
|
||||
slapi_pblock_set( op->o_pb, SLAPI_RESULT_TEXT, ( rs->sr_text != NULL ) ? (void *)ch_strdup( rs->sr_text ) : NULL );
|
||||
/* RESULT_TEXT is dup'd by pblock_set */
|
||||
slapi_pblock_set( op->o_pb, SLAPI_RESULT_TEXT, rs->sr_text );
|
||||
#endif /* LDAP_SLAPI */
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &num_sent_mutex );
|
||||
|
|
|
|||
Loading…
Reference in a new issue