Plug memory leak in slap_get_csn().

This commit is contained in:
Hallvard Furuseth 2003-09-29 14:06:48 +00:00
parent bdac96f929
commit 76dd417dc9

View File

@ -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;