From: Selat Date: Wed, 5 Feb 2014 17:52:59 +0000 (+0200) Subject: Fix memory leak in database migration X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=6715c422aecf0e8cb409a3d2cb056a1bffe63446;p=zefram%2Fminetest%2Fminetest_engine.git Fix memory leak in database migration --- 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);