mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
cleanup NULL deref
This commit is contained in:
parent
2d4da0b23c
commit
de36ebd08c
@ -78,6 +78,8 @@ ldap_pvt_thread_rdwr_init( ldap_pvt_thread_rdwr_t *rwlock )
|
||||
|
||||
rw = (struct ldap_int_thread_rdwr_s *) LDAP_CALLOC( 1,
|
||||
sizeof( struct ldap_int_thread_rdwr_s ) );
|
||||
if ( !rw )
|
||||
return LDAP_NO_MEMORY;
|
||||
|
||||
/* we should check return results */
|
||||
ldap_pvt_thread_mutex_init( &rw->ltrw_mutex );
|
||||
|
Loading…
Reference in New Issue
Block a user