mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
Plug memory leak in slap_get_csn().
This commit is contained in:
parent
bdac96f929
commit
76dd417dc9
@ -179,13 +179,13 @@ slap_get_csn(
|
||||
{
|
||||
struct slap_csn_entry *pending;
|
||||
|
||||
if ( csn == NULL )
|
||||
return LDAP_OTHER;
|
||||
|
||||
if ( manage_ctxcsn ) {
|
||||
pending = (struct slap_csn_entry *) ch_calloc( 1, sizeof( struct slap_csn_entry ));
|
||||
}
|
||||
|
||||
if ( csn == NULL )
|
||||
return LDAP_OTHER;
|
||||
|
||||
csn->bv_len = lutil_csnstr( csnbuf, len, 0, 0 );
|
||||
csn->bv_val = csnbuf;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user