Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
335294e1
Commit
335294e1
authored
Dec 15, 2001
by
Howard Chu
Browse files
More cleanup for bdb_db_close
parent
dfd26b8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-bdb/init.c
View file @
335294e1
...
...
@@ -317,11 +317,17 @@ bdb_db_close( BackendDB *be )
{
int
rc
;
struct
bdb_info
*
bdb
=
(
struct
bdb_info
*
)
be
->
be_private
;
struct
bdb_db_info
*
db
;
while
(
bdb
->
bi_ndatabases
--
)
{
rc
=
bdb
->
bi_databases
[
bdb
->
bi_ndatabases
]
->
bdi_db
->
close
(
bdb
->
bi_databases
[
bdb
->
bi_ndatabases
]
->
bdi_db
,
0
);
db
=
bdb
->
bi_databases
[
bdb
->
bi_ndatabases
];
rc
=
db
->
bdi_db
->
close
(
db
->
bdi_db
,
0
);
if
(
db
->
bdi_name
)
free
(
db
->
bdi_name
);
free
(
db
);
}
free
(
bdb
->
bi_databases
);
bdb_attr_index_destroy
(
bdb
->
bi_attrs
);
return
0
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment