Skip to content

Commit 6715c42

Browse files
Selatsapier
Selat
authored and
sapier
committedFeb 7, 2014
Fix memory leak in database migration
1 parent bc0bbff commit 6715c42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/main.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,7 @@ int main(int argc, char *argv[])
12741274
<< (100.0 * count / blocks.size()) << "% completed" << std::endl;
12751275
}
12761276
new_db->endSave();
1277+
delete new_db;
12771278

12781279
actionstream << "Successfully migrated " << count << " blocks" << std::endl;
12791280
world_mt.set("backend", migrate_to);

0 commit comments

Comments
 (0)
Please sign in to comment.