mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
oi_list might be null if overlay initialization failed for any reason
This commit is contained in:
parent
3e89a4ff82
commit
2947c098ce
@ -210,10 +210,13 @@ over_db_destroy(
|
||||
|
||||
rc = over_db_func( be, db_destroy );
|
||||
|
||||
for (next = on->on_next; on; on=next) {
|
||||
next = on->on_next;
|
||||
free( on );
|
||||
if ( on ) {
|
||||
for (next = on->on_next; on; on=next) {
|
||||
next = on->on_next;
|
||||
free( on );
|
||||
}
|
||||
}
|
||||
|
||||
free( oi );
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user