mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Database.close() is idempotent. Call it at the end unconditionally
This commit is contained in:
parent
d54819e15b
commit
c2d88bf460
@ -377,13 +377,13 @@ int main(int argc, char *argv[])
|
||||
} else {
|
||||
read_cmdline(argc, argv);
|
||||
delete cmdline_items;
|
||||
Database.close();
|
||||
}
|
||||
} catch (errorEx &ex) {
|
||||
XCA_ERROR(ex);
|
||||
} catch (enum open_result r) {
|
||||
qDebug() << "DB open failed: " << r;
|
||||
}
|
||||
Database.close();
|
||||
|
||||
qDebug() << "pki_base::count" << pki_base::allitems.size();
|
||||
foreach(pki_base *pki, pki_base::allitems)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user