Fix memory leak in database migration
authorSelat <LongExampletestName@gmail.com>
Wed, 5 Feb 2014 17:52:59 +0000 (19:52 +0200)
committersapier <Sapier at GMX dot net>
Fri, 7 Feb 2014 19:43:12 +0000 (20:43 +0100)
src/main.cpp

index b5de4b93fb4e4c5cdab40c142424717499a65e15..58312794409ac334d055d6ade6f55f2a6bfcdca0 100644 (file)
@@ -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);