mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
minor cleanup; plug couple of one-time leaks
This commit is contained in:
parent
55f24ce8f6
commit
ae1481ba62
1 changed files with 8 additions and 4 deletions
|
|
@ -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 a new issue