Skip to content

Commit

Permalink
Fix memory leak in database migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Selat authored and sapier committed Feb 7, 2014
1 parent bc0bbff commit 6715c42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 6715c42

Please sign in to comment.