Database.close() is idempotent. Call it at the end unconditionally

This commit is contained in:
Christian Hohnstaedt 2021-05-07 12:41:03 +02:00
parent d54819e15b
commit c2d88bf460

View File

@ -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)