From 6715c422aecf0e8cb409a3d2cb056a1bffe63446 Mon Sep 17 00:00:00 2001 From: Selat Date: Wed, 5 Feb 2014 19:52:59 +0200 Subject: [PATCH] Fix memory leak in database migration --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index b5de4b93..58312794 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1274,6 +1274,7 @@ int main(int argc, char *argv[]) << (100.0 * count / blocks.size()) << "% completed" << std::endl; } new_db->endSave(); + delete new_db; actionstream << "Successfully migrated " << count << " blocks" << std::endl; world_mt.set("backend", migrate_to); -- 2.30.2