mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix memory leak in database migration
This commit is contained in:
parent
bc0bbffa14
commit
6715c422ae
1 changed files with 1 additions and 0 deletions
|
@ -1274,6 +1274,7 @@ int main(int argc, char *argv[])
|
||||||
<< (100.0 * count / blocks.size()) << "% completed" << std::endl;
|
<< (100.0 * count / blocks.size()) << "% completed" << std::endl;
|
||||||
}
|
}
|
||||||
new_db->endSave();
|
new_db->endSave();
|
||||||
|
delete new_db;
|
||||||
|
|
||||||
actionstream << "Successfully migrated " << count << " blocks" << std::endl;
|
actionstream << "Successfully migrated " << count << " blocks" << std::endl;
|
||||||
world_mt.set("backend", migrate_to);
|
world_mt.set("backend", migrate_to);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue