[PATCH v2 04/11] lib: do not leak the database in compaction

2013-11-03 Thread Jani Nikula
Destroy instead of close the database after compaction, and also on error path, to not leak the database. --- lib/database.cc | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 7a8702e..eadf8a7 100644 --- a/lib/database.cc +++ b/lib/da

[PATCH v2 04/11] lib: do not leak the database in compaction

2013-11-03 Thread Jani Nikula
Destroy instead of close the database after compaction, and also on error path, to not leak the database. --- lib/database.cc | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 7a8702e..eadf8a7 100644 --- a/lib/database.cc +++ b/lib/da