From: Selat Date: Wed, 5 Feb 2014 17:52:59 +0000 (+0200) Subject: Fix memory leak in database migration X-Git-Tag: 0.4.10~275 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6715c422aecf0e8cb409a3d2cb056a1bffe63446;p=oweals%2Fminetest.git Fix memory leak in database migration --- diff --git a/src/main.cpp b/src/main.cpp index b5de4b93f..583127944 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);