mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
minor cleanup; plug couple of one-time leaks
This commit is contained in:
parent
55f24ce8f6
commit
ae1481ba62
@ -101,7 +101,7 @@ static struct {
|
||||
char *desc;
|
||||
AttributeDescription **ad;
|
||||
} s_at[] = {
|
||||
{ "olmBDBCounter", "( " BDB_MONITOR_SCHEMA_AD ".0 "
|
||||
{ "olmBDBCounter", "( " BDB_MONITOR_SCHEMA_AD ".1 "
|
||||
"NAME ( 'olmBDBCounter' ) "
|
||||
"DESC 'A dummy counter' "
|
||||
"SUP monitorCounter "
|
||||
@ -322,10 +322,14 @@ cleanup:;
|
||||
if ( cb != NULL ) {
|
||||
ch_free( cb );
|
||||
}
|
||||
}
|
||||
|
||||
if ( a != NULL ) {
|
||||
attrs_free( a );
|
||||
}
|
||||
if ( !BER_BVISNULL( &filter ) ) {
|
||||
ch_free( filter.bv_val );
|
||||
}
|
||||
|
||||
if ( a != NULL ) {
|
||||
attrs_free( a );
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
Loading…
Reference in New Issue
Block a user